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

RFE: Please provide access to process ID

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.1
    • core-libs
    • generic
    • generic



      Name: rlT66838 Date: 06/29/99


      Feature request: given that all operating systems support the idea of a running process, and given that that abstraction exists in the JDK (java.lang.Process) and given that all processes are by their nature distinct from one another, it seems pretty easy to add the ability to get to the process ID in the core JDK.

      This could be accomplished in one of two ways:
      (a) public int getID() method in java.lang.Process
      (b) hashcode() of java.lang.Process could return System's pid

      Why: all sorts of reasons, but primarily at the moment we are implementing a log system that needs the process ID.
      (Review ID: 84986)
      ======================================================================

            iris Iris Clark
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: