if you are using shared data, use mutexes for both reading and writing. Surround your read and write sections with pthread_mutex_lock() and pthread_mutex_unlock(), or use them any time a program's invariant is temporarily broken.

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