Re: help with huge memory consumption??



"David Schwartz" <davids@xxxxxxxxxxxxx> writes:

[...]

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.

It is fairly nonsensical, because on Linux, process and thread
creation costs do not (and cannot) differ significantly. The main
difference will be that creating a new process requires copying the
page tables of the old process.
.



Relevant Pages

  • Re: help with huge memory consumption??
    ... I'm saying that saying what you said in the context in which you ... When people are talking about multi-threaded versus multi-process ... creating a thread to the cost of creating a process. ... It is purely misleading. ...
    (comp.os.linux.development.system)
  • Re: help with huge memory consumption??
    ... | When people are talking about multi-threaded versus multi-process ... | creating a thread to the cost of creating a process. ... of threads vs. processes has to be considered, not just the creation cost. ...
    (comp.os.linux.development.system)
  • Re: Improve hackbench
    ... Based on this multi-process version, ... HTTP request sent, awaiting response... ...
    (Linux-Kernel)
  • Re: career in Unix
    ... I am not sure if that rant was in response to my point? ... to be honest you cannot totally deny that the investment in these ... started happending the cost of a techie in India was 1/10th the cost ... China is currently the fastest growing economy in the world. ...
    (comp.unix.aix)
  • Government Response to petition saynoto0870
    ... response from the Government. ... cost of the call. ... The independent Office of Communications (Ofcom) which is responsible ... But Ofcom knows that consumers have concerns that 084 and 087 numbers ...
    (uk.telecom)