Re: PS output for threads

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

 





On 5/25/06, Abu M. Muttalib <abum@xxxxxxxxx> wrote:
Hi,

I have an application wherein I have say 10 threads which are created
unconditionally and run a "while(1);".

Will they be shown in the output of ps -A as 10 different processes?

Hi
cause Linux don't differentiate between process and a threads .. they are all tasks
all your threads have the same parent process id "ppid" and share the same process group id "pgid"
hope this helps
 
--
MHD.Tayseer

[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