Waiting and Signaling on Condition Variables

Routines:

pthread_cond_wait(condition,mutex)

pthread_cond_signal(condition)

pthread_cond_broadcast(condition)

Usage: