会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
挣扎一下
博客园
首页
新随笔
联系
订阅
管理
2020年7月10日
并发编程:为何线程的等待方法都会抛出InterruptException
摘要: 线程中的Interrupt 线程中存在volatile变量Interrupt,用来标记是否中断。 线程中存在对应的isInterrupted()方法,默认是false。调用thread.interrupt()会把isInterrupted()设置成true。 线程的中断和复位 调用thread.in
阅读全文
posted @ 2020-07-10 00:01 挣扎一下
阅读(650)
评论(0)
推荐(0)
编辑
公告