This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/4274] Performance issue: pthread_cond_signal() causes three context switches instead of one
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Wed, 19 Sep 2012 08:54:35 +0000
- Subject: [Bug nptl/4274] Performance issue: pthread_cond_signal() causes three context switches instead of one
- Auto-submitted: auto-generated
- References: <bug-4274-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=4274
Rich Felker <bugdal at aerifal dot cx> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugdal at aerifal dot cx
--- Comment #12 from Rich Felker <bugdal at aerifal dot cx> 2012-09-19 08:54:35 UTC ---
Calling pthread_cond_signal without holding the mutex is perfectly valid and
cannot result in signals being lost unless the implementation is buggy (which
glibc may be; see bug #13165). What it can result in, however, is deviation
from the expected priority behavior guaranteed by the priority scheduling
options of POSIX.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.