Condition variable synchronization APIs

Condition variables are synchronization objects that allow threads to wait for certain events (conditions) to occur. Condition variables are slightly more complex than mutexes, and the correct use of condition variables requires the thread to co-operatively use a specific protocol in order to ensure safe and consistent serialization. The protocol for using condition variables includes a mutex, a boolean predicate (true/false expression) and the condition variable itself. The threads that are cooperating using condition variables can wait for a condition to occur, or can wake up other threads that are waiting for a condition.

The table below lists important conditional variables attributes, their default values, and all supported values.

For information about the examples included with the APIs, see Information about the Pthread API examples.

The Condition variable synchronization APIs are:

[ Back to top | Pthread APIs | APIs by category ]