Condition variable
Previous: Concurrency
A condition variable is a synchronization primitive that allows threads to wait efficiently until a specific condition becomes true. They are usually used in conjunction with a lock.
Previous: Concurrency
A condition variable is a synchronization primitive that allows threads to wait efficiently until a specific condition becomes true. They are usually used in conjunction with a lock.