Listing processes

Prior to Java 9, we did not have the means to obtain a list of active processes. With Java 9, 10, and 11 it is possible to get the processes in Stream. There are three methods that return Stream<ProcessHandle> and are used to:

  • List children processes
  • List all the descendants
  • List all processes

Each of these is reviewed in the next section.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset