官术网_书友最值得收藏!

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).

主站蜘蛛池模板: 吐鲁番市| 罗江县| 老河口市| 布尔津县| 汉中市| 芜湖县| 朝阳市| 寿宁县| 宁德市| 沁阳市| 清流县| 缙云县| 寿阳县| 榆中县| 筠连县| 美姑县| 灌阳县| 韶关市| 安福县| 阿尔山市| 通江县| 嘉义市| 全南县| 台东市| 克东县| 琼海市| 邮箱| 新泰市| 四子王旗| 东平县| 社旗县| 阳春市| 芷江| 平谷区| 武功县| 定西市| 富锦市| 青冈县| 湛江市| 修武县| 金湖县|