Depends on whether you're using Linux threads,
or the NPTL (?).  The older package gives them
separate PID's, the newer does not.  In other
words, it depends on your libc configuration.
(They both get ID's like pids, but the tids
are somehow marked to not show up in ps, etc.
with the newer library.)

Nothing to do with BB, certainly.

-- Jim



-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Guillaume Dargaud
Sent: Monday, May 04, 2009 7:28 AM
To: [email protected]
Subject: Multiple PIDs for a multithreaded program

Hello all,
I'm not sure what mailing list this question belongs to.

I just added some multithreading to a user app and I'm surprised to see
it 
show with 4 different PIDs when I use ps or top. The program has 3
threads, 
including the main one.
I thought that only forked programs created different PIDs, not threads.

I'm on Buildroot+Busybox+uClibc, all about 6 months old.

Anyone cares to explain, thanks (I breaks some control scripts).
-- 
Guillaume Dargaud
http://www.gdargaud.net/

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to