LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   about pid of process (https://www.linuxquestions.org/questions/programming-9/about-pid-of-process-785157/)

hamedn 01-27-2010 02:44 PM

about pid of process
 
Hello dear friends
Is the PID of a process changes during it’s life cycle in linux ?
Or it’s PID is fixed throughout of process’s life cycle.
tanx

pixellany 01-27-2010 03:13 PM

What is the context of your question?

Here's a big hint:
Does your house address change with time?
Does your car license number change as you drive down the road?
Do you personal ID #'s ( eg drivers license and Social Security in the USA, or passport) change with time?
What would happen if any of these were "yes"?

CoderMan 01-27-2010 05:21 PM

Quote:

Originally Posted by hamedn (Post 3842694)
Hello dear friends
Is the PID of a process changes during it’s life cycle in linux ?
Or it’s PID is fixed throughout of process’s life cycle.
tanx

PID is fixed during the lifetime of the process. This is necessary for a number of programming and system-related reasons.

Of course, each time an application becomes a process (i.e., the program is started) it will get a different PID.


All times are GMT -5. The time now is 02:51 PM.