From the course: First Look: Java 9

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Process API changes

Process API changes - Java Tutorial

From the course: First Look: Java 9

Start my 1-month free trial

Process API changes

- [Narrator] Java Nine includes updates to the Process API. The Process API controls and manages operating system processes. The old version frequently caused programmers to use native code to work around the limitations of the API. Prior to this release, there was a limited ability for controlling and managing operating system processes with Java. For example, in order to do something as simple as get your Process I.D., the PID, in earlier versions of Java, you would need to either access native code or use some other workaround. One other problem is that it would require a different implementation for each platform, to make sure you're getting the right result. This new update extends Java's ability to interact with the operating system. New, direct methods are available to handle the Process IDs, process names and states, and the ability to enumerate the Java virtual machines and processes, and more. This update includes a ProcessHandle class, which provides access to critical…

Contents