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

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

主站蜘蛛池模板: 阿城市| 福贡县| 治多县| 安泽县| 闵行区| 凌云县| 洱源县| 乌什县| 阿克| 陇西县| 云安县| 翁源县| 建平县| 东乌珠穆沁旗| 界首市| 长兴县| 西和县| 昌乐县| 托克托县| 黄大仙区| 咸宁市| 芜湖县| 丽江市| 铜山县| 安康市| 民和| 垫江县| 高碑店市| 康定县| 酉阳| 吉林省| 朝阳县| 勃利县| 长宁区| 辉县市| 米林县| 景宁| 尉氏县| 元朗区| 屯门区| 濮阳市|