Re: help with huge memory consumption??



On Mar 7, 1:23 am, Rainer Weikusat <rainer.weiku...@xxxxxxxxx> wrote:

It costs some time to create a process, and threads don't have that
time, so threads must be better.

On a system that has only ever supported 1:1 threading as default
model, 'process creation' being much slower than 'thread creation'
would be a strong hint at a deficiency in the kernel. But reportedly, the
difference is negligible on Linux, so your assumption should be
wrong. And it is a strawman, except if you constrict yourself to a set
of real-world cases where the reason you try to shoot down actually
was the reason to use threads.

This is a nonsensical reply. Thread creation is in no way analogous to
process creation. Threads are reusable, processes are not.

DS

.



Relevant Pages

  • Re: help with huge memory consumption??
    ... 'process creation' being much slower than 'thread creation' ... would be a strong hint at a deficiency in the kernel. ... was the reason to use threads. ... implemented with the same system mechanism (things the kernel sees as ...
    (comp.os.linux.development.system)
  • Re: [PATCH 2/2] Add support for in-kernel process creation during restart
    ... process creation more easy. ... This information (and the pids of children) is already available in ... why do you want to start the container in the kernel? ...
    (Linux-Kernel)
  • Re: [Devel] Re: [PATCH 0/9] OpenVZ kernel based checkpointing/restart
    ... process creation. ... Pretty sure Dave prefers user-space. ... I'd say the thing to do is push the core API that supports single-thread ... kernel, and let the arguments for and against that stand on their own. ...
    (Linux-Kernel)
  • Re: CreateProcess parameter interception at NtCreateSection
    ... problem, BTW, simply due to how process creation works. ... The Win32 layer provides the illusion that creating the process, ... there is no single kernel call that will receive all of the information you ... NtCreateThread// create the first thread ...
    (microsoft.public.win32.programmer.kernel)
  • Re: help with huge memory consumption??
    ... would be a strong hint at a deficiency in the kernel. ... Because thread creation is in no way analogous to process creation. ... The thread pool server will create some maximum number ... The cost of a thread ...
    (comp.os.linux.development.system)