Re: Linus on Linux, Apache and Threads

Andi Kleen (ak@muc.de)
24 Apr 1999 14:23:42 +0200


olaf@bigred.inka.de (Olaf Titz) writes:

> > how does the event waiter thread determine whether there is a
> > suitable/idle worker thread to awaken?
>
> like this?
[complicated queue management code snipped]

This is essentially equivalent to what accept() does in the kernel.
So why not use that directly (together with some sample statistics code
that starts new worker threads as needed)?

-Andi

-- 
This is like TV. I don't like TV.

- 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/