[lkml]   [2003]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] [2/2] posix message queues
    Peter Wächtler wrote:

    > Userspace translates SIGEV_THREAD to something that uses SIGEV_SIGNAL.
    > Ulrich made a suggestion to use a futex, but I think of something even
    > more lightweight. Just put the requestor right to sleep.

    This has the disadvantage that it codifies the requirement of creating
    the thread for the userlevel signaling ahead of time. While this is a
    valid implementation it is not the best (resource-wise) and doesn't
    allow for optimizations. Using a futex will allow to implement a scheme
    where one single thread does the waiting for possibly many requests.
    Imagine the benefits in case there are dozens of outstanding requests.
    The additional system exit+entry isn't that expensive to justify
    removing the flexibility.

    --------------. ,-. 444 Castro Street
    Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
    Red Hat `--' drepper at `---------------------------

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

     \ /
      Last update: 2005-03-22 13:49    [W:0.019 / U:91.588 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site