- 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).
推薦閱讀
- LabVIEW 2018 虛擬儀器程序設計
- Magento 2 Theme Design(Second Edition)
- Spring快速入門
- RabbitMQ Cookbook
- Scala Reactive Programming
- 一本書講透Java線程:原理與實踐
- C專家編程
- Arduino計算機視覺編程
- PHP 7從零基礎到項目實戰
- Moodle 3 Administration(Third Edition)
- Data Science Algorithms in a Week
- C++程序設計
- Scratch從入門到精通
- Java Web開發教程:基于Struts2+Hibernate+Spring
- jQuery Mobile Web Development Essentials(Second Edition)