[lkml]   [2000]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: 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.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 12:38    [W:0.084 / U:1.732 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site