Re: Poor condvar performance
Ingo Molnar <[email protected]> Wed, 26 Nov 2003 11:30:38 +0100 (CET)
| Newsgroups | gmane.comp.lib.phil |
|---|---|
| Message-ID | <Pine.LNX.4.58.0311261129170.18295@earth> |
On Tue, 25 Nov 2003, Luke Elliott wrote: > Ulrich stated that "The best solution is to get requeue working > (although two syscalls are made)." I would also appreciate some > clarification of this - does it mean that the immediate scheduling of > the woken thread would not happen, in a similar way to the hack to > sched.c above? Because that seems to be a bad thing. requeue means that the waiting thread is directly queued from the condvar futex to the mutex futex, without any intermediate scheduling. this already happens for cond_broadcast() - but you are using cond_signal(), correct? Ingo