摘要: 多线程 第一章 一。终止线程的三种方法: 1.使用退出标志,是县城正常退出,也就是当run方法完成后线程终止。 2.stop不推荐 3.使用interrupt(打了一个停止标记,并不是真的停止线程)。 1)interrupt+throw new interruptexception(推荐使用,cat 阅读全文
posted @ 2018-07-21 16:05 黑夜不再来 阅读(8914) 评论(0) 推荐(0) 编辑