摘要: //因为不是类中所有代码都要被线程执行, 为了区分哪些代码需要被执行 //java提供了Thread类中的run()方法用来包含那些被线程执行的代码 public class SimpleThread extends Thread { public SimpleThread(String name) 阅读全文
posted @ 2019-11-13 15:34 祈欢 阅读(341) 评论(0) 推荐(1) 编辑