- 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).
推薦閱讀
- 大學計算機基礎(第二版)
- C語言程序設計實踐教程(第2版)
- Instant Testing with CasperJS
- Node.js 10實戰
- 無代碼編程:用云表搭建企業數字化管理平臺
- 構建移動網站與APP:HTML 5移動開發入門與實戰(跨平臺移動開發叢書)
- Software Testing using Visual Studio 2012
- Java技術手冊(原書第7版)
- YARN Essentials
- Effective Python Penetration Testing
- 碼上行動:用ChatGPT學會Python編程
- 批調度與網絡問題的組合算法
- Webpack實戰:入門、進階與調優
- OpenCV Android Programming By Example
- 多媒體技術及應用