execProcess = rt.exec("cmd /c C:/prg.exe < C:/in.txt > C:/pout.txt",null, "C:/");
while((System.currentTimeMillis() < (startTime + maxAllowTime))){ //for each test case
try{
if(execProcess.exitValue() == 0){
break;
}else{
break;//terminate the process abnormal???
}
}catch(IllegalThreadStateException itse){ //the process hasn't finished
}
}
---------------------------------------------------
execProcess = rt.exec("cmd /c C:/prg.exe < C:/in.txt > C:/pout.txt",null, "C:/");
Tomcat server is used.
When many clients do the request at the same time the pout.txt files is output empty.
i dont know why?
while((System.currentTimeMillis() < (startTime + maxAllowTime))){ //for each test case
try{
if(execProcess.exitValue() == 0){
break;
}else{
break;//terminate the process abnormal???
}
}catch(IllegalThreadStateException itse){ //the process hasn't finished
}
}
---------------------------------------------------
execProcess = rt.exec("cmd /c C:/prg.exe < C:/in.txt > C:/pout.txt",null, "C:/");
Tomcat server is used.
When many clients do the request at the same time the pout.txt files is output empty.
i dont know why?