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.