摘要: package xiancheng; //以继承方式支持多线程 public class Test2 extends Thread{ //重写fun方法 //fun方法是用来被star()自动调用 @Override public void run() { //调用需要并发执行的语句 test(); 阅读全文
posted @ 2016-06-03 21:46 薛岩 阅读(618) 评论(0) 推荐(0) 编辑