lkml.org 
[lkml]   [1999]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Per-Processor Data Paget
David Lang wrote:
>
> It depends on if you are doing a CPU intensive program or one that talks
> to the outside world.
>
> for example in a threaded web server you may want to have one thread for
> each request , instead of one thread per CPU.

This would be *very* expensive to do. More likely, you would want to
have a pool of threads already spun which would select on several
descriptors. That way you could take advantage of multiproccessor
systems and the benefits of threads without the overhead of spawning a
new thread for every connection which could get huge on a big server.

--
_
Tom Duffy __ (_)
____ _/,-' __
/ .__) / _ \ |_ |
\__. \( (_) ) | |
(____/ \ __/ | |_
//--, `--'
( <> ) Core Linux
`--'

-
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:55    [W:0.153 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site