Signaling on Condition Variables
pthread_cond_signal
Function Prototype
int pthread_cond_signal(pthread_cond_t *cond)Function
隨機將「一個」等待 cond 的 thread 挖起床
pthread_cond_broadcast
Function Prototype
int pthread_cond_broadcast(pthread_cond_t *cond)Function
將所有等 cond 的 thread 挖起床