清秀冬日

文章
10
资源
0
加入时间
4年2月8天

多线程 interrupt用法

本文涉及到的两个知识点示例代码当线程睡眠完成后 Thread.sleep(100), 开始了interrupt打断线程, 随即在循环中执行方法isInterrupted(), 返回结果为true, 代表了该线程已经被打断了