what is the meaning of ppid 1? | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

what is the meaning of ppid 1?

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-02-2007
darkrainbow darkrainbow is offline
Registered User
 
Join Date: Jul 2007
Last Activity: 9 December 2008, 10:22 PM EST
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
what is the meaning of ppid 1?

Is there any meaning on parent process id when it is equal = 1?
It is found that most of the ppid is lower than pid of the same process by 1
when perform ps -ef

but notice that some process's ppid is 1
Sponsored Links
    #2  
Old 08-02-2007
benefactr benefactr is offline
Registered User
 
Join Date: Jul 2007
Last Activity: 4 February 2013, 4:02 PM EST
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
This may not be 100% correct, but most processes that have a ppid of 1 are the system processes that are started up, tty's and other things. You can also have this when you kill the parent and it still had some child process out there running. Like if you killed cron and it had jobs running, those running processes would have a 1 on them.
Sponsored Links
    #3  
Old 08-02-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
 
Join Date: Mar 2005
Last Activity: 5 July 2014, 11:14 AM EDT
Location: classification algos
Posts: 3,203
Thanks: 19
Thanked 30 Times in 27 Posts
Quote:
Originally Posted by darkrainbow View Post
Is there any meaning on parent process id when it is equal = 1?
It is found that most of the ppid is lower than pid of the same process by 1
when perform ps -ef

but notice that some process's ppid is 1
ppid 1 indicates that the process is child of the process with pid 1 or the init process
pid = X ppid = 1
or
processes that have been adopted by the process 1 ( init )


Quote:
It is found that most of the ppid is lower than pid of the same process by 1
when perform ps -ef
there could be a case like this where this condition may not be true always
parent process with pid X
spawns a child process with pid Y

based on the system load and the allocation of pids to the process
there is a possibility that X > Y

but as you have said in most of the cases, it would be as
X < Y
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
PID and PPID - please explain :(- newbie_01 UNIX for Dummies Questions & Answers 1 11-29-2011 05:37 AM
Process Name from PPID troystevens UNIX for Dummies Questions & Answers 2 10-05-2010 09:46 AM
Shall I go for uid or ppid? Lora Graham Shell Programming and Scripting 4 04-26-2010 03:03 PM
why process PPID changes to 1 usha rao Solaris 2 04-22-2009 04:24 PM
printing ppid,child pid,pid a25khan Programming 3 02-02-2004 12:13 AM



All times are GMT -4. The time now is 01:44 PM.