Runtime.getRuntime().exec(command) 阻塞
public int exec(String command) {
Process process = Runtime.getRuntime().exec(command); //此处有时候发生阻塞
DataInputStream stdout = new DataInputStream(process.getInputStream());
String line;
while ((line = stdout.readLine()) != null) {
mResultString += line + "\n";
}
process.waitFor();
return process.exitValue();
}
时而发生阻塞 怎么解决