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

Re: nptl 0.26



On Thu, 27 Feb 2003, dada1 wrote:

> The rationale of this change is to unlock the mutex before calling
> futex_wake(). If not, there is a high probability that the kernel
> preempts the current thread in favor of the waiting thread(s) in
> futex_wake(). And the waiting thread hit the locked mutex and recall
> another futex_wait() for the mutex.

indeed, this is an important optimization if the lock-hold times are high.  
Waiting threads likely have higher priority and preempt the current
thread.

	Ingo





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