Practical Unix Programming:
A Guide to Concurrency, Communication, and Multithreading

by Kay. A. Robbins and Steven Robbins

Chapter 10: Thread Synchronization

POSIX.1c threads support mutexes for short-term locking and condition variables for waiting on events of unbounded duration. Multithreaded programs can also use POSIX.1b semaphores for synchronization. Signal handling in threaded programs presents additional complications which can be reduced if signal handlers are replaced with dedicated threads. This chapter illustrates these thread synchronization concepts through variations on the producer-consumer problem.

Next chapter

Back to chapter summaries