Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8003490

(process) Provide Process.getCurrentPid() to get identifier of current process

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • None
    • core-libs
    • generic
    • generic

      Add a facility to query the id of the JVM's process. Important note from Alan Bateman:

      "You probably know this but a getPid and perhaps a getCurrentPid requires great care. We cannot assume
      that it can be represented by an int or long, it needs to allow for environment that might not have the notion of process as we know it, also needs consideration of environment where they may be several VMs running in the same process. So lots of wriggle room in the spec, otherwise it will not be implementable everywhere. "

            rriggs Roger Riggs
            robm Robert Mckenna
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: