Re: So, Poll is not scalable... what to do?

From: bill davidsen
Date: Wed Nov 12 2003 - 18:34:40 EST


In article <LAW12-F60bw5TYIo9WF0002bec8@xxxxxxxxxxx>,
kirk bae <justformoonie@xxxxxxxxxxx> wrote:
| If poll is not scalable, which method should I use when writing
| multithreaded socket server?
|
| What is the most efficient model to use?
|
| Is there a "standard" model to use when writing a scalable multithreaded
| socket serve such as "io completion ports" on windows?
|

In many cases people just run a thread per socket and use blocking i/o.
Then the thread either does the work required or make an entry on a
"work to do" queue.

You've had other suggestions, this is just for completeness.
--
bill davidsen <davidsen@xxxxxxx>
CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/