public inbox for
 help / color / mirror / Atom feed
From: Ross Johnson <>
To: Matthew Ford <>
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: <> (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.


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

  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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* 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).