[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: nptl 0.26
- From: Ingo Molnar <mingo elte hu>
- To: phil-list redhat com
- Subject: Re: nptl 0.26
- Date: Thu, 27 Feb 2003 10:49:42 +0100 (CET)
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]