Why does start_new_thread() create an extra process under Linux?
Erno Kuusela
erno-news at erno.iki.fi
Fri Jul 30 10:59:38 EDT 2004
Jon Perez <jbperez808 at wahoo.com> writes:
> Does this the fact that NPTL threads are 'just one process' mean they
> are not created using clone()? Are NPTL threads not scheduled by
> the kernel?
they are just hidden from the /proc directory listing.
(erno at fabulous) /home.b/erno % ls -l /proc/`pidof firefox-bin`/task
total 0
dr-xr-xr-x 3 erno erno 0 Jul 30 17:56 28319
dr-xr-xr-x 3 erno erno 0 Jul 30 17:56 31596
dr-xr-xr-x 3 erno erno 0 Jul 30 17:56 31597
dr-xr-xr-x 3 erno erno 0 Jul 30 17:56 31599
(erno at fabulous) /home.b/erno % ls -l /proc/28319 | wc -l
16
(erno at fabulous) /home.b/erno % ls -l /proc|grep -c 28319
0
-- erno
More information about the Python-list
mailing list