Threads and processes
DavidSmith at byu.net
Tue Mar 1 15:25:37 MST 2005
<quote who="Nicholas Leippe">
> On Tuesday 01 March 2005 03:02 pm, David Smith wrote:
>> Here are two process questions for the kernel heads:
>> 1. I am developing a multi-threaded app in C++ for Linux. Under RHEL
>> when I do 'ps -A', my app shows up just once, but under Debian Unstable,
>> 'ps -A' shows 10 (the number of threads I have). Can someone explain why
>> this is? I remember studying kernel-level threads and user-level threads
>> in my OS class, but why would two Linux kernels behave differently? Is
>> just a matter of differing ps options perhaps?
> The kernels are not behaving differently, only the reporting is different.
> Some utilities (ps/top) don't expand threads by default.
Indeed. I see now that 'top' shows the threads when I key 'H' and ps shows
them when I add a "-m". Any idea where default configuration for top and
ps is stored?
More information about the PLUG