Re: waitqueues vs. wake_up_process

From: Ingo Molnar (mingo@elte.hu)
Date: Mon Aug 28 2000 - 05:20:18 EST


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/



This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:21 EST