pthread_mutex_lock() accepts a single pointer to a mutex to lock. If the mutex already happens to be locked, the caller will go to sleep. When the function returns, the caller will be woken up (obviously), and the caller will also now hold the lock. This call either returns zero on success.

picture loading error handler
12 thought(s)12

Threads in C

pthreads library and threaded programming in C
#C
#programming
#threads
#CS
Get

Explore more quotes