Subj : Re: proper order of pthread_mutex_unlock() and pthread_cond_signal() To : comp.programming.threads From : Markus Elfring Date : Tue Feb 01 2005 07:19 am > I've read that pthread_cond_signal(&cond) should actually be inside the > locked code segment (critical section) and not outside as shown in the > example above. Any comments on why one of the correct solutions is the > way to go? Both work for me but I'm quite confident that one is wrong. The discussion "A word of caution when juggling pthread_cond_signal/pthread_mutex_unlock" contains some useful descriptions already. http://groups.google.de/groups?threadm=d976b79f.0403182115.45c8fed4%40posting.go ogle.com Regards, Markus .