This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- Additional Comments From drepper at redhat dot com  2007-08-25 05:38 -------
Whatever you think you are measuring has nothing to do with glibc.  Should there
actually be extra wake-ups this happens entirely in the kernel.  glibc uses
FUTEX_WAKE_OP which prevents unnecessary delays.  If the kernel schedules
freshly woken threads right away before finishing the futex call something of
course can go wrong.  But all this happens in the kernel.  glibc gives the
kernel all the information it needs to avoid any problem.

Talk to the kernel people.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


http://sourceware.org/bugzilla/show_bug.cgi?id=4274

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]