[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: multithreading on linux

Daniel Tiefnig wrote:
> hi, i've got another question:
> when i'm running slapd on an AIX machine, it starts one process and
> that's it.
> if i'm running slapd on linux, it starts 2 additional processes (one
> child and a child of the child, the first process with PPID 1, 'course).
> that normal?


Kernel-scheduled threads on Linux show as separate entries in the process
table.  They should actually share the same process id but, apparently,
most user-space tools get confused by that.  So that feature (known as
CLONE_PID) is off by default.

So those processes are your threads.  While they look like independent
processes, they are sharing nearly everything.