In this chapter, we discussed how the current Java platform enables us to manage processes. This represents a vast improvement from earlier versions of Java, which required operating system-specific implementations and was less than optimal in terms of CPU use and coding practice. The modern API, with new classes like ProcessHandle, makes it possible to handle almost all aspects of processes. We examined the new API and reviewed sample code snippets for the use of each of them. We also constructed a full application, managing processes where the learned API was put into practice.
In the next chapter, we will take a detailed look at the Java Stack Walking API. We will use code samples to illustrate how to use the API.