Condition variables allow us to synchronize threads via notifications. So, you can implement workflows like sender/receiver or producer/consumer. In such a workflow, the receiver waits for the sender's notification. If the receiver gets the notification, it continues its work.
Read more
Read more...