Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Java 程序中我有 的对象Process,我想知道它是PID. 程序在 Windows 64 位机器上运行。我遇到过这个,但无法让它们工作。
Process
PID
我需要PID进程,因为如果它仍在运行,我想在超时后终止该进程。Process#destroy不会杀死子进程。
Process#destroy