lkml.org 
[lkml]   [1999]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linus on Linux, Apache and Threads

On 23-Apr-99 Chuck Lever wrote:

>> Depends. You can use a thread pool and queue requests which are
>> then
>> picked up by the threads.
>
> how do you propose to do that efficiently? is there a nice way in
> Unix/Linux to hand out incoming network requests to a pool of
> threads?
>

You have a main thread that does an accept() loop and queues
the connections via the descriptor (possibly starting new threads, *if
required*).

I've already implemented this for a web proxy I've been working on.

-tony


---
E-Mail: Tony Gale <gale@syntax.dera.gov.uk>
Advice is a dangerous gift; be cautious about giving and receiving it.
The views expressed above are entirely those of the writer
and do not represent the views, policy or understanding of
any other person or official body.

-
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    [W:0.248 / U:0.028 seconds]
©2003-2011 Jasper Spaans. Advertise on this site