This post originated from an RSS feed registered with Java Buzz
by News Manager.
Original Post: Java 9's other new enhancements, Part 3
Feed Title: JavaWorld
Feed URL: http://www.javaworld.com/index.rss
Feed Description: JavaWorld.com: Fueling Innovation
JEP 102: Process API Updates enhances the java.lang.Process class and introduces the java.lang.ProcessHandle interface with its nested Info interface to overcome limitations that often force developers to resort to native code; for example, to obtain the native process ID (PID). This post introduces you to these upgrades.
Enhancing Process, and introducing ProcessHandle and ProcessHandle.Info
Java 9 adds several new methods to the abstract Process class that let you identify direct child or descendent processes, obtain this Process's PID, return a snapshot of information about this Process, obtain a completable future to receive asynchronous notification when this Process exits, and more: