首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

线程中止

2012-12-18 
线程中断线程类的interrupt()方法可对某一线程进行中断,例子如下:Try to call fInterrupting com.test.thr

线程中断
线程类的interrupt()方法可对某一线程进行中断,例子如下:

Try to call fInterrupting com.test.thread.block.SynchronizedBlockedInterrupt set to com.test.thread.block.SynchronizedBlockedAborting with System.exit(0)

因为这里的f()方法一直不释放锁,interrupt()方法也无法使它停止

热点排行