What is Condition variable?
A synchronization mechanism that puts a thread to sleep until a condition holds and wakes it on a signal from another thread. The condition must be rechecked after waking.
Field: Multicore & Synchronization
A synchronization mechanism that puts a thread to sleep until a condition holds and wakes it on a signal from another thread. The condition must be rechecked after waking.
Field: Multicore & Synchronization
Waiting on a condition variable releases the lock and sleeps; when signaled, the thread reacquires the lock and returns.
When waiting on a condition variable until a queue becomes …ABA problem Acquire-release semantics Atomic instruction Barrier synchronization Bus snooping Compare-and-swap Critical section Data race Deadlock Directory-based coherence