>  Term: condition variable
condition variable

A wait queue with additional locking semantics. When a thread sleeps, waiting for some event to occur, it releases a related lock so that another thread can cause that event to occur. When the second thread posts the event, the first thread wakes up, and, depending on the condition variable semantics used, either takes the lock immediately or begins waiting for the lock to become available.

0 0

작성자

© 2024 CSOFT International, Ltd.