예제
protected void doGet(HttpServletRequest arg0, HttpServletResponse arg1) throws IOException {
Process process = Runtime.getRuntime().exec("dir /s");
try {
int exit = process.waitFor();
}
catch (InterruptedException exc) {
// ...
}
}
솔루션
병렬 처리가 필요할 경우 프로세스 대신 풀링된 스레드를 사용하십시오.