detecting threads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guys,

this is pretty much an old question,

'how to distinguish threads from forks from the user
space?'.

I understand that the only way to detect if a process
is a fork or a thread is in the /proc/<pid>/stat file
field 9 which corresponds to the flags of the process.

However my curiosity got aroused when I installed
RH8.. the system monitor gives a proper display of the
process, fork and thread.

I'm left to wonder how it does this. it used the
2.4.18-14 kernel. 

Are there any new flags that I'm missing that were
introduced (by popular demand)? or does it access some
kernel structure to get thid information.

if yes what are the structures?

tia,
Sharath

=====
-Sharath

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux