Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The greater sharing provided by threads comes at a cost. Threaded applications must employ synchronization primitives such as mutexes and condition variables in order to coordinate access to shared variables. A mutex provides exclusive access to a shared variable. A condition variable allows one or more threads to wait for notification that some other thread has changed the state of a shared variable.
Refer to the sources of further information listed in Section 29.10.