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

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

主站蜘蛛池模板: 平陆县| 永济市| 博兴县| 阳城县| 昭苏县| 闻喜县| 白沙| 金山区| 克东县| 大渡口区| 卫辉市| 新野县| 新河县| 临沂市| 沙湾县| 沅江市| 依安县| 新乡县| 武宣县| 侯马市| 孟州市| 大理市| 宜春市| 焦作市| 富裕县| 宝兴县| 乌兰浩特市| 曲水县| 大宁县| 泾川县| 龙里县| 洛隆县| 盘锦市| 胶南市| 龙门县| 盐城市| 克什克腾旗| 文化| 额敏县| 黎平县| 黄龙县|