Subj : Re: Study Material for Multi-threaded application developement in UNIX/LINUX To : comp.programming.threads From : Uenal Mutlu Date : Fri May 27 2005 07:57 am "Arash Partow" wrote > > No if they were static then you could only ever have one instance of > POSIXCondition. The condition variable once created can be passed > around by reference to other threads which will use the variable either > > to wait on or to signal / waiting threads. > > The reason for the loop and such... is because signal and broadcast > are two different waking mechanisms. In the pthreads standard > broadcast wakes every waiting thread on the condition where as signal > wakes the thread that as been waiting the longest or in other words > was the first to call wait on that condition - aka first in queue. Ok, thx, got it. BTW, I must say a nice library. Keep up the good thing. .