mutexes are used to serialize access to *shared data*. Don't use them for non-shared data, and don't use them if your program's logic ensures that only one thread is accessing a particular data structure at a single time.

picture loading error handler
12 thought(s)12

Threads in C

pthreads library and threaded programming in C

Explore more quotes