Re: 2 Newbie questions

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

 



On Mon, Nov 26, 2001 at 08:25:38PM +0530, Mohit Kalra wrote:

> 1.  Why doesn't the kernel let all the processes use the CLONE_PID flag?
> What is the reason for allowing only the  process with PID == 0 to use this
> feature.  If this was allowed then threads of a single process could have
> the same PID as required by pthreads.  Currently each thread gets a
> separate PID even though it is spawned from the same process (not what
> POSIX asks for).

How do I parse /proc/<pid> for each thread then ?

POSIX does not require separate pids as far as I know. It does need a "thread id"
though, and kernel support for that was added during 2.4 I believe.

regards
john

-- 
"By the way, it's not binaries, it's Perl code. Sometimes they look confusingly
similar."
	- Pavel Roskin
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/



[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