* Which thread is released when pthread_cond_signal() is called
@ 2003-01-29 23:53 Matthew Ford
2003-01-30 1:44 ` Ross Johnson
0 siblings, 1 reply; 3+ messages in thread
From: Matthew Ford @ 2003-01-29 23:53 UTC (permalink / raw)
To: pthreads-win32
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Which thread is released when pthread_cond_signal() is called
2003-01-29 23:53 Which thread is released when pthread_cond_signal() is called Matthew Ford
@ 2003-01-30 1:44 ` Ross Johnson
0 siblings, 0 replies; 3+ messages in thread
From: Ross Johnson @ 2003-01-30 1:44 UTC (permalink / raw)
To: Matthew Ford; +Cc: pthreads-win32
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Which thread is released when pthread_cond_signal() is called
@ 2003-01-30 15:59 Bossom, John
0 siblings, 0 replies; 3+ messages in thread
From: Bossom, John @ 2003-01-30 15:59 UTC (permalink / raw)
To: 'Matthew Ford', pthreads-win32
Do not count on an answer that uniformly applies to all platforms...
-----Original Message-----
From: Matthew Ford [mailto:matthew.ford@forward.com.au]
Sent: Wednesday, January 29, 2003 6:53 PM
To: pthreads-win32@sources.redhat.com
Subject: Which thread is released when pthread_cond_signal() is called
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
This message may contain privileged and/or confidential information. If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so. Thank you.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-30 15:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-29 23:53 Which thread is released when pthread_cond_signal() is called Matthew Ford
2003-01-30 1:44 ` Ross Johnson
2003-01-30 15:59 Bossom, John
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).