java调用shell的弊端

经过Runtime.getRuntime().exec()方法来调用shell,java虚拟机会克隆当前进程,若是太频繁就消耗大量CPU和内存。 html


http://www.javaworld.com/article/2071275/core-java/when-runtime-exec---won-t.html java

相关文章
相关标签/搜索