Messages in this thread | | | Date | Mon, 28 Aug 2000 12:20:18 +0200 (CEST) | From | Ingo Molnar <> | Subject | Re: waitqueues vs. wake_up_process |
| |
On Fri, 25 Aug 2000, Andrea Arcangeli wrote:
> Actually (test7) it's always good idea to use "wake_up_process()" > instead of a waitqueue, if in the waitqueue there would be only 1 task > at once.
no, it's not a good idea for the reason i described: 1) extensibility of the code itself (you can easily change a waitqueue-based code to multiple-threads, you cannot do it with the wake_up_process() variant) 2) wake_up_process() is a scheduler-internal function and optimizations that go into waitqueues will not necesserily show up in wake_up_process(). As of 2.4.0-test7 you are right, but it's IMHO shortsighted.
Ingo
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
| |