Re: Threads not waking on pthread_cond_signal()

Ulrich Drepper <[email protected]>
Newsgroups gmane.comp.lib.phil
Organization Red Hat, Inc.
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ian Wienand wrote:

> Possibly the difference is that with requeue there are two futex calls
> (one to move the queue, one to wake up a thread), where as the old
> codepath only has one?

Certainly, this is known to cause some slowdown.  The elimination of the
worst case  behavior has a price.

- -- 
- --------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+9y9k2ijCOnn/RHQRAp9KAKDHFx2EO/Fc6zNtsSbdFvUEyVA18ACeLU3t
qCNwznE93V96hN0IKeVOStw=
=5y3+
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.