[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: nptl 0.26



phil-list redhat com schrieb am 27.02.03 11:05:17:
> 
> Ingo Molnar wrote:
> 
> > indeed, this is an important optimization if the lock-hold times are high.  
> > Waiting threads likely have higher priority and preempt the current
> > thread.
> 
> But it cannot be generally done.  For pthread_cond_signal and
> pthread_cond_broadcast, for instance, the lock must be held until after
> the notification.  

Why?

regards,
alexander.

--
http://www.terekhov.de/DESIGN-futex-CV.cpp

http://groups.google.com/groups?threadm=3D9196B2.9BC29299%40web.de
(Subject: Re: rwlock using pthread_cond)

______________________________________________________________________________
Keine Lust, immer Ihre Adressdaten in eine E-Mail zu schreiben? Mit der
vCard ist Schluss damit! Infos - http://freemail.web.de/features/?mc=021153





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]