How to wait and notify like in Java In C/C++ for shared memory between two or more thread?I use pthread library.
pthread_cond_wait and pthread_cond_signal can be used to synchronize based on a condition