我有一个过程检查/ Linux的
Runtime rt = Runtime.getRuntime() ;
Process p = rt.exec(filebase+port+"/hlds.exe +ip "+ip+" +maxplayers "+players+ " -game cstrike -console +port "+port+" -nojoy -noipx -heapsize 250000 +map de_dust2 +servercfgfile server.cfg +lservercfgfile +mapcyclefile mapcycle.txt +motdfile motd.txt +logsdir logs -zone 2048",null, new File(filebase+port)) ;
我想保持检查这个过程是否其运行或崩溃的情况下已经坠毁要重新启动,这个过程可以有多个实例取决于端口
我可以跟踪Linux和Windows上的这个东西吗?阅读一些文章,但这1有点不同,因为它涉及多个事件,并且只能检查某个特定进程
?并保持同一个线程的轮询? – Varun 2011-04-29 05:59:00