lkml.org 
[lkml]   [1997]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Threads question
On Fri, 25 Apr 1997, Todd Graham Lewis wrote:

> > People who think they need thousands of threads really don't, they
> > just need to heavily rethink their design.
>
> Disclaimer: I am not an expert systems programmer, and David is.
>
> Still, though, there are legitimate applications wherein having multiple
> thousands of threads necessary. The most active IRC server on the net,
> from what I understand, is a FreeBSD Pentium which can accept ~1500 (this
> is from memory) connections.

I don't agree.

A much more efficient solution would be to setup a small pool of threads
to handle the incoming network I/O and work-related tasks which can grow
and shrink as needed based on average work load or a similar algorithm.

Thousands of threads is a waste of resources (CPU & memory), IMHO.

-mike


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