What happens if all threads are busy and main thread has sent thread cond signal ?
1 Main Thread and 3 pthreads in thread pool. 3 pthreads are in status of
pthread_mutex_lock(&sync_mutex);
pthread_cond_wait(&sync_cond, &sync_mutex);
pthread_mutex_unlock(&sync_mutex);
Main thread has sent Signal to wake up the threads to process the work. In this situation, What if 3 threads are already busy and next signal has arrived?