摘要: 线程中的Interrupt 线程中存在volatile变量Interrupt,用来标记是否中断。 线程中存在对应的isInterrupted()方法,默认是false。调用thread.interrupt()会把isInterrupted()设置成true。 线程的中断和复位 调用thread.in 阅读全文
posted @ 2020-07-10 00:01 挣扎一下 阅读(650) 评论(0) 推荐(0) 编辑