Condition Variables

This lesson discusses condition variables, the machinery to enable signaling between threads.

We'll cover the following

The other major component of any threads library, and certainly the case with POSIX threads, is the presence of a condition variable. Condition variables are useful when some kind of signaling must take place between threads if one thread is waiting for another to do something before it can continue. Two primary routines are used by programs wishing to interact in this way:

Get hands-on with 1200+ tech skills courses.