[Bug nptl/4274] Performance issue: pthread_cond_signal() causes three context switches instead of one

bugdal at aerifal dot cx sourceware-bugzilla@sourceware.org
Wed Sep 19 08:55:00 GMT 2012


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.



More information about the Glibc-bugs mailing list