Ejemplo
protected void doGet(HttpServletRequest arg0, HttpServletResponse arg1) throws IOException {
Process process = Runtime.getRuntime().exec("dir /s");
try {
int exit = process.waitFor();
}
catch (InterruptedException exc) {
// ...
}
}
Solución
Si el paralelismo es necesario, utilice hebras agrupadas en lugar de procesos.