This is the mail archive of the pthreads-win32@sources.redhat.com mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Which thread is released when pthread_cond_signal() is called


In pthreads-win32 this will be determined by the behaviour of Win32's WaitForMultipleObjects() and ReleaseSemaphore() routines, which are at the centre of pthread_cond_*().

I think Win32 semaphore releases are FIFO, like Win32 mutexes.

Ross

Matthew Ford wrote:
Assume for simplicity that all the waiting threads are of the same
priority.
Which one will wake up on a call to
pthread_cond_signal()

regards
matthew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]