Re: Linus on Linux, Apache and Threads

Marc Slemko (marcs@znep.com)
Sat, 24 Apr 1999 14:44:11 -0700 (PDT)


On Sat, 24 Apr 1999, Alex Belits wrote:

> On 24 Apr 1999, Andi Kleen wrote:
>
> >
> > You have multiple threads doing an accept on a single listen socket. As
> > soon as a thread finished work it calls accept and gets the next ready
> > connection handed from the kernel.
>
> ...or will be awakened on the connection that was handled by another
> thread (because of "wake everyone" handling), and accept() will fail,
> causing the infamous "thundering herd".

If that is a problem (and there are various reasons why it may or may not
be in various situations), then someone should fix the kernel so it
doesn't have that problem. Several other OSes have.

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