How to timeout a process# Java - 爪哇娇娃
t*i
1 楼
I have a process p = Runtime.getRuntime().exec("some programe). After a
timeout(say t), I need to stop this process if it haven't finish running.
What's the nice way to do that?
Thanks!
timeout(say t), I need to stop this process if it haven't finish running.
What's the nice way to do that?
Thanks!