i wasn't trying to suggest it was hard to code or understand. my question
is how to do this efficiently. has anyone compared the performance of
this model with the performance of the same application implemented
using NT's completion ports?
every Unix model i've seen that uses the "single thread waits for event
and wakes up worker threads" has suffered from a variety of problems that
can cripple its performance, like:
how does the event waiter thread determine whether there is a
suitable/idle worker thread to awaken?
> The trick is all in waking up the sleeping threads when
> the queue becomes non-empty without having the "thundering herd" problem.
agreed! any ideas?
- Chuck Lever
-- corporate: <chuckl@netscape.com> personal: <chucklever@netscape.net> or <cel@monkey.org>The Linux Scalability project: http://www.citi.umich.edu/projects/linux-scalability/
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/