April 2018
Intermediate to advanced
910 pages
33h 21m
English
Prior to Java 9, we did not have the means to obtain a list of active processes. With Java 9 it is now possible to get the processes in a stream. There are three methods that return a Stream<ProcessHandle>. One lists the child processes. The other lists all the descendants; the children and the children of those recursively. The third lists all the processes.