随笔分类 -  JAVA

摘要:Java代码publicclassImportThreadextendsThread{privatestaticListrunningThreads=newArrayList();publicImportThread(){}@Overridepublicvoidrun(){regist(this);//线程开始时注册System.out.println(Thread.currentThread().getName()+"开始...");//打印开始标记//做一些事情......unRegist(this);//线程结束时取消注册System.out.println(Thre 阅读全文
posted @ 2013-05-17 15:56 BicycleBoy 阅读(817) 评论(0) 推荐(0)