pthread_cond_wait() call has not yet returned. Unlocking the mutex happens immediately, but waiting on the condition mycond is normally a blocking operation, meaning that our thread will go to sleep, consuming no CPU cycles until it is woken up.

picture loading error handler
12 thought(s)12

Threads in C

pthreads library and threaded programming in C

Explore more quotes