- Java 9 Programming Blueprints
- Jason Lee
- 156字
- 2021-07-02 18:56:27
Process handling API
In prior versions of Java, developers interacting with native operating system processes had to use a fairly limited API, with some operations requiring resorting to native code. As part of Java Enhancement Proposal (JEP) 102, the Java process API was extended with the following features (quoting from the JEP text):
- The ability to get the pid (or equivalent) of the current Java virtual machine and the pid of processes created with the existing API.
- The ability to enumerate processes on the system. Information on each process may include its pid, name, state, and perhaps resource usage.
- The ability to deal with process trees; in particular, some means to destroy a process tree.
- The ability to deal with hundreds of subprocesses, perhaps multiplexing the output or error streams to avoid creating a thread per subprocess.
We will explore these API changes in our first project, the Process Viewer/Manager (see the following sections for details).
推薦閱讀
- Mastering OpenLayers 3
- 大學計算機基礎(第二版)
- Cross-platform Desktop Application Development:Electron,Node,NW.js,and React
- 架構不再難(全5冊)
- SQL Server 2012數據庫技術及應用(微課版·第5版)
- Learning AWS Lumberyard Game Development
- VSTO開發入門教程
- x86匯編語言:從實模式到保護模式(第2版)
- Java程序設計與實踐教程(第2版)
- Clojure for Machine Learning
- Python Machine Learning Blueprints:Intuitive data projects you can relate to
- Learning C++ by Creating Games with UE4
- 絕密原型檔案:看看專業產品經理的原型是什么樣
- Azure for Architects
- SQL Server 2014數據庫設計與開發教程(微課版)