Re: help with huge memory consumption??
- From: "David Schwartz" <davids@xxxxxxxxxxxxx>
- Date: 12 Mar 2007 02:04:29 -0700
On Mar 10, 6:30 pm, phil-news-nos...@xxxxxxxx wrote:
Comparing
threads and processes is more like comparing shipping the _same_ product
by overnight vs. by boat. There are fundamental differences. Some things
should not be shipped by some means. The eggs might break in airplanes.
Fresh fish might spoil shipped by truck. Certain hazardous material just
cannot be shipped by mail or courier. But that doesn't mean you can't
compare airplanes vs. boats vs. trucks vs. railroads vs. donkey backs.
By doing the comparisons you find out what may be impractical for some
things. You may find out which programs are impractical to do in threads
or in processes. But that's a result of comparison, not an excuse to
deny that comparison can even be done.
Exactly, and that is why I call foul every time the first thing
someone does when comparing the performance of a multi-thread to a
multi-process approach is compare the cost of creating a thread to the
cost of creating a process. In the list of relevant considerations, it
is maybe in the top 50 but probably not.
The viewpoint I am arguing against is:
It costs some time to create a process, and threads don't have that
time, so threads must be better.
And my response is that that when talking about the performance of a
multi-threaded approach versus a multi-process approach, it is
nonsensical to directly compare the cost of creating a thread to the
cost of creating a process. Only in the rare case where you had to
choose between creating one and creating the other precisely the same
number of times would that have any relevance, and that almost never
happens.
DS
.
- Follow-Ups:
- Re: help with huge memory consumption??
- From: Rainer Weikusat
- Re: help with huge memory consumption??
- References:
- help with huge memory consumption??
- From: Dan Miller
- Re: help with huge memory consumption??
- From: David Schwartz
- Re: help with huge memory consumption??
- From: phil-news-nospam
- Re: help with huge memory consumption??
- From: David Schwartz
- Re: help with huge memory consumption??
- From: Rainer Weikusat
- Re: help with huge memory consumption??
- From: David Schwartz
- Re: help with huge memory consumption??
- From: Rainer Weikusat
- Re: help with huge memory consumption??
- From: David Schwartz
- Re: help with huge memory consumption??
- From: Chris Friesen
- Re: help with huge memory consumption??
- From: David Schwartz
- Re: help with huge memory consumption??
- From: phil-news-nospam
- help with huge memory consumption??
- Prev by Date: Re: help with huge memory consumption??
- Next by Date: Re: help with huge memory consumption??
- Previous by thread: Re: help with huge memory consumption??
- Next by thread: Re: help with huge memory consumption??
- Index(es):
Relevant Pages
|