runtime应用实例:
public class runtime {
public static void main(String[] args)
{
Runtime r=Runtime.getRuntime();
System.out.println(r.freeMemory());
System.out.println(r.totalMemory());
try {
r.exec("notepad");
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
process类应用实例:
process p=r.exec("notepad");//添加子进程textpad;
本文来自优快云博客,转载请标明出处:http://blog.youkuaiyun.com/xiaotian15/archive/2011/04/24/6358434.aspx
public class runtime {
public static void main(String[] args)
{
Runtime r=Runtime.getRuntime();
System.out.println(r.freeMemory());
System.out.println(r.totalMemory());
try {
r.exec("notepad");
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
process类应用实例:
process p=r.exec("notepad");//添加子进程textpad;
本文来自优快云博客,转载请标明出处:http://blog.youkuaiyun.com/xiaotian15/archive/2011/04/24/6358434.aspx