![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
thread
文章平均质量分 67
sinat_33472737
这个作者很懒,什么都没留下…
展开
-
thread中断相关方法区别interrupt、interrupted和isInterrupted
public static boolean interrupted() { return currentThread().isInterrupted(true); } isInterrupted 测试此线程是否已被中断。 线程的中断状态不受此方法的影响。 由于此方法返回false,因此会反映出线程中断而被忽略,因为该线程在中断时还没有处于活动状态 public boolean isInterrupted() { return isInterrupt...原创 2021-03-11 22:47:28 · 244 阅读 · 0 评论 -
浅谈ThreadPoolExecutor
转载:https://www.cnblogs.com/trust-freedom/p/6681948.html原创 2021-03-10 13:39:16 · 81 阅读 · 0 评论