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)
======================================================================
- duplicates
-
JDK-4244896 (process) Provide Process.waitFor(timeout), Process.destroyForcibly() and Process.isAlive()
- Closed