Subj : Re: Semaphores and pthreads To : comp.programming.threads From : Loic Domaigne Date : Sun Jan 09 2005 09:05 pm Hi Paolo, > Thank you. > So are you telling me not to use semaphores, but pthread_cond_wait()? Yes, a pair of mutex / condition variable is the way to go. .... Mixing mutex and semaphore is really unusual... [ and by the way. One motto of comp.programming.threads is "(Almost) never use sema". ] Cheers, Loic. .