lkml.org 
[lkml]   [2001]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: Why use threads ( was: Alan Cox quote?)
Date

> On 20-Jun-2001 David Schwartz wrote:

> >> On Wed, Jun 20, 2001 at 02:01:16PM -0700, David Schwartz wrote:

> >> > It's very hard to use processes for this purpose. Consider,
> >> > for example, a
> >> > web server. You don't want to use one process for each client
> >> > because that
> >> > would limit your scalability (16,000 clients would become
> >> > difficult, and
> >> > with threads it's trivial). You don't want to use one thread
> >> > for each client

> >> How is it trivial? How do you debug a 16,000 thread application?

> > As I said, you don't want to use one thread for each
> > client. You use,
> > say, 10 threads for the 16,000 clients.

> Humm, you're going to select() over 1600 fds ...

Who said anything about 'select'? If you want to learn how to write
efficient multi-threaded servers, take a course or read a book. Heck, you
can even ask me questions on marginally appropriate lists or even by private
email. But don't put words in my mouth.

DS

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:55    [W:0.139 / U:0.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site