lkml.org 
[lkml]   [1999]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linus on Linux, Apache and Threads
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".

--
Alex

----------------------------------------------------------------------
Excellent.. now give users the option to cut your hair you hippie!
-- Anonymous Coward

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

\
 
 \ /
  Last update: 2005-03-22 13:51    [from the cache]
©2003-2011 Jasper Spaans