Lecture 2

Measuring Speed

Posix Threads

Basics of pthreads

pthread_attr_init()

Gets default thread attributes & stores ina pthread_attr_t struct

pthread_attr_setdetachstate()

Sets the detach state value.

pthread_create()
pthread_exit()
pthread_join()

Note: Making threads joinable requires more memory \thereforeif not required, make threads detached