Re: Why use threads ( was: Alan Cox quote?)

Mike Castle
2001-06-20T22:44:00Z

On Wed, Jun 20, 2001 at 03:18:58PM -0700, David Schwartz wrote:
> As I said, you don't want to use one thread for each client. You use, say,
> 10 threads for the 16,000 clients. That way, if an occasional client
> ambushes a thread (say by reading a file off an NFS server or by using some
> infrequently used code that was swapped to a busy disk), your server will
> keep on humming.

This same approach can easily be used by multiple processes.

I don't see what is gained by using threads over processes for such an
architecture.

mrc
--
Mike Castle dalgoda@ix.netcom.com www.netcom.com/~dalgoda/
We are all of us living in the shadow of Manhattan. -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); -- gcc