show thread as process
Cathey, Jim
jcathey at ciena.com
Thu Sep 17 15:43:58 UTC 2009
You should only go on to show threads if the -H switch
is given to ps. That's the standard behavior among many
systems. Only the first linux threads implementation had
'threads' that looked like full processes.
-- Jim
________________________________
From: busybox-bounces at busybox.net [mailto:busybox-bounces at busybox.net]
On Behalf Of Fabian Meier
Sent: Thursday, September 17, 2009 1:25 AM
To: busybox at busybox.net
Subject: show thread as process
Hi
The behaviour of ps with linuxthreads is different from nptl. A thread
is listed as a process with linuxthreads. With nptl you see only the
real process.
I modified props_scan so it can also work with threads(tasks) by
scanning /proc/<process>/task/*. I also added a config option in ps for
that feature.
Regards
Fabian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090917/bc816be7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 3410 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090917/bc816be7/attachment.gif>
More information about the busybox
mailing list