From: Ross Johnson <rpj@ise.canberra.edu.au>
To: Matthew Ford <matthew.ford@forward.com.au>
Cc: pthreads-win32@sources.redhat.com
Subject: Re: Which thread is released when pthread_cond_signal() is called
Date: Thu, 30 Jan 2003 01:44:00 -0000 [thread overview]
Message-ID: <3E38848D.1050705@ise.canberra.edu.au> (raw)
In-Reply-To: <007a01c2c7f1$9238d8c0$0200a8c0@NOTEBOOK>
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
next prev parent reply other threads:[~2003-01-30 1:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-29 23:53 Matthew Ford
2003-01-30 1:44 ` Ross Johnson [this message]
2003-01-30 15:59 Bossom, John
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E38848D.1050705@ise.canberra.edu.au \
--to=rpj@ise.canberra.edu.au \
--cc=matthew.ford@forward.com.au \
--cc=pthreads-win32@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).