会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
huangyichun
博客园
首页
新随笔
联系
管理
订阅
2017年7月6日
java多线程 interrupt(), interrupted(), isInterrupted()方法区别
摘要: interrupt()方法: 作用是中断线程。 本线程中断自身是被允许的,且"中断标记"设置为true 其它线程调用本线程的interrupt()方法时,会通过checkAccess()检查权限。这有可能抛出SecurityException异常。 若线程在阻塞状态时,调用了它的interrupt(
阅读全文
posted @ 2017-07-06 16:02 huangyichun
阅读(6357)
评论(0)
推荐(1)
编辑
公告