title: Check if process is running on windows/linux
body: <p>i have a process </p>
  
  <pre><code>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)) ;
  </code></pre>
  
  <p>i want to keep a check on this process whether its running or has crashed in case of crash want to restart it, this Process can have multiple instance available depending upon the port </p>
  
  <p>Can i trace this thing on Linux as well as on windows?  Read some articles on it but this 1 is bit different, since it involves multiple occurrences and have to check on some particular process only </p>