United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4250622 : RFE: Please provide access to process ID

Details
Type:
Enhancement
Submit Date:
1999-06-29
Status:
Closed
Updated Date:
2001-11-05
Project Name:
JDK
Resolved Date:
2001-11-05
Component:
core-libs
OS:
generic
Sub-Component:
java.lang
CPU:
generic
Priority:
P4
Resolution:
Duplicate
Affected Versions:
1.2.1
Fixed Versions:

Related Reports
Duplicate:

Sub Tasks

Description

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) 
======================================================================

                                    

Comments
EVALUATION

Duplicate 4244896.

-- iag@sfbay 2001-11-05
                                     
2001-11-05
WORK AROUND



Name: rlT66838			Date: 06/29/99


The workaround at the moment is to wrap the java program in an OS script (like a .sh or a .bat file), but this strikes me as faintly silly for a language that attempts to be a serious enterprise contender.
======================================================================
                                     
2004-06-11



Hardware and Software, Engineered to Work Together