Chad Leigh -- Shire.Net LLC wrote:
Hi
Is there a way to get a ps or top like display of processes that
shows just the master process and not all the threads as separate
processes for java programs? This is on a 2.4.30 hardened gentoo
system.
For 2.4.30, I don't know of any way to do this, because as far as the
kernel is concerned, every thread really is a separate process. They
are just communicating via signals and shared memory. I think it is
pretty much impossible for another process like top or ps to figure out
whether something is a 'thread' or a 'process' with 2.4.
If you use 2.6 and nptl+nptlonly, this is handled automatically. Notice
my ps output for thunderbird:
carcharias rjf # ps -A xw -f | grep thunderbird
rjf 978 963 0 07:06 ? Sl 0:50
/usr/lib/mozilla-thunderbird/thunderbird-bin -mail
carcharias rjf # ps -A xw -f -L | grep thunderbird
rjf 978 963 978 0 4 07:06 ? Sl 0:49
/usr/lib/mozilla-thunderbird/thunderbird-bin -mail
rjf 978 963 982 0 4 07:06 ? Sl 0:00
/usr/lib/mozilla-thunderbird/thunderbird-bin -mail
rjf 978 963 984 0 4 07:06 ? Sl 0:00
/usr/lib/mozilla-thunderbird/thunderbird-bin -mail
rjf 978 963 14672 0 4 08:38 ? Sl 0:00
/usr/lib/mozilla-thunderbird/thunderbird-bin -mail
-Richard
--
[email protected] mailing list