Příklad
protected void doGet(HttpServletRequest arg0, HttpServletResponse arg1) throws IOException {
Process process = Runtime.getRuntime().exec("dir /s");
try {
int exit = process.waitFor();
}
catch (InterruptedException exc) {
// ...
}
}
Řešení
Je-li požadovaný paralelismus, použijte místo procesů vlákna z oblasti.