Kontorotsui wrote:
>
> On 18-Oct-99 Artur Biesiadowski wrote:
> > Every thread looks like process to ps. So you get as many entries as there
> > are native threads. Fortunately memory is shared, so you
> > should count only one resident/shared number.
>
> But is there a way to see when it is a thread and when it is a process? Or the
> only way is to notice it has the same resident/shared memory?
I haven't found a way. The closest thing I've found so far is to compare
the /proc/<pid>/maps files, which are identical for two threads of the
same process but unlikely to be identical for different processes.
Nathan
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]