Skip to content

Opening book details…

About this document

Multithreading in C: Performance Analysis by Francisco Pinheiro is a document available to read on EtoBox.

The document discusses multithreading in C using pthreads. It allocates memory for an array of doubles and divides the array among 20 threads. Each thread is assigned a portion of the array and performs 110 iterations of randomly generating values for its portion and then calculating the sine of each value cubed. The main function creates the threads, joins the threads after they complete, and prints the elapsed, user, and system times.

Author
Francisco Pinheiro
Language
EN