• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: The PID of an Application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The PID of an Application?


  • Subject: Re: The PID of an Application?
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 25 Jan 2016 10:29:55 -0800

> On Jan 25, 2016, at 9:53 AM, Dave <email@hidden> wrote:
>
> Is the PID of an Application 120% cast-iron guaranteed not to change during the Application’s life span?

Yes. The PID is what uniquely identifies a process during its lifespan.

(Technically it’s possible for running code to see its PID change if the process forks, but it’s infeasible to fork anything but a bare-metal process on a Darwin-based OS, so you’ll never have to worry about that. I’m sort of afraid to mention this because it may turn into an off-topic rathole, but I’m also afraid that if I don’t mention it someone will be all “But what about forking, huh?” ;-)

—Jens
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Removing Observers eats up memory (From: Markus Spoettl <email@hidden>)
 >Re: Removing Observers eats up memory (From: Quincey Morris <email@hidden>)
 >The PID of an Application? (From: Dave <email@hidden>)

  • Prev by Date: The PID of an Application?
  • Next by Date: Dodgy Code - Low Level Memory Management Question!
  • Previous by thread: The PID of an Application?
  • Next by thread: Re: The PID of an Application?
  • Index(es):
    • Date
    • Thread