LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-27-2010, 02:44 PM   #1
hamedn
LQ Newbie
 
Registered: Sep 2009
Posts: 22

Rep: Reputation: 0
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
 
Old 01-27-2010, 03:13 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
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"?
 
Old 01-27-2010, 05:21 PM   #3
CoderMan
Member
 
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375
Blog Entries: 24

Rep: Reputation: 43
Quote:
Originally Posted by hamedn View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get the name of process from PID in C/C++? kulandaivelu Programming 3 02-03-2009 09:41 AM
How to get the PID of the process giving kill signal to a process? hariprd Programming 2 11-27-2008 03:10 AM
pid of a process kushkothari Programming 8 11-19-2008 05:06 AM
[C++] Get process ID (PID) Moraxus Programming 5 10-16-2008 12:31 PM
Getting pid of a process!! vishamr2000 Programming 31 09-09-2005 08:46 PM


All times are GMT -5. The time now is 09:13 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration