Re: dos inux creates a new process that runs thread ?



On 2007-02-09, Chris <chris@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I believe that the older kernel (2.4 or was it 2.2) would
actually create a process for the pthread.

Still does (mostly).

Threads are still processes (in the view of the scheduler).
However, the bookeeping has been jiggered around so that they
can share a PID. That's over-simplified a bit, but the details
can be found here:

http://linuxdevices.com/articles/AT6753699732.html

--
Grant Edwards grante Yow! Are you selling NYLON
at OIL WELLS?? If so, we can
visi.com use TWO DOZEN!!
.



Relevant Pages

  • Re: pthread and multiple cores
    ... scope. ... is this a scheduler thing or am i not tuning my pthread ...
    (Linux-Kernel)
  • Re: [patch, 2.6.11-rc2] sched: RLIMIT_RT_CPU_RATIO feature
    ... >spinlocks will work inter-process on 2.4 too, ... on sending signals and passing through the whole pthread layer. ... really a user-space cooperative scheduler. ... please keep in mind this description of JACK. ...
    (Linux-Kernel)
  • Re: posix scheduler
    ... Can every pthread have different scheduler? ... Not a different scheduler, but a different scheduling policy ... This paragraph is specifically referring to the pthread_setconcurrency ...
    (comp.os.vxworks)