It is currently Tue, 30 Nov 2021 17:45:42 GMT



 
Author Message
 Child process PID
Hello,
    Is it possible to have the  child process PID same as that of it's
parent. If so under what conditions.

 Thanx for any info.
 M. Sai Srivastava.



 Tue, 24 Jul 2001 03:00:00 GMT   
 Child process PID

No.  No two processes can have the same PID, whether they have a
parent-child relationship or not.

--
Andrew Smallshaw
smalls...@cs.man.ac.uk



 Tue, 24 Jul 2001 03:00:00 GMT   
 Child process PID

only if the parent exec's the child (in which case the child replaces
the parent process).

S.



 Tue, 24 Jul 2001 03:00:00 GMT   
 Child process PID
In article <36BB06EE.5...@email.mot.nospam.com>, Stephane Du Pasquier <r25...@email.mot.nospam.com> writes:
|> >
|> > Hello,
|> >     Is it possible to have the  child process PID same as that of it's
|> > parent. If so under what conditions.
|>
|> only if the parent exec's the child (in which case the child replaces
|> the parent process).

NO !!! in this case neither PID nor PPID changes and there is no notion of
 child since there is no new process ...

The only possible case where PID == PPID is for the initial process
( init or other ... )
like for example the scheduler on AIX:
     UID    PID   PPID   C    STIME    TTY  TIME CMD
     root      0      0 120   Jan 23      - 96:09 swapper

|>
|> S.

 Pierre Rogier.



 Tue, 24 Jul 2001 03:00:00 GMT   
 
   [ 4 post ] 

Similar Threads

1. child process' killer's pid

2. How to get the PID of a child process

3. Knowing PID of a child process

4. how to kill a child process that runs other children processes

5. obtaining child PID in a child subshell

6. Getting a child and child's child process-id

7. Getting a child and child's child process-id


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software