摘要: 线程销毁(stop方法为什么剔除) (1)设置退出标志,使线程正常退出,也就是当run()方法完成后线程终止 (2)使用interrupt()方法中断线程 (3)使用stop方法强行终止线程(不推荐使用,Thread.stop, Thread.suspend, Thread.resume 和 Run 阅读全文
posted @ 2021-03-15 17:09 Money131 阅读(424) 评论(0) 推荐(0) 编辑