摘要: Why is Thread.stop deprecated?Because it is inherently unsafe. Stopping a thread causes it to unlock all the monitors that it has locked. (The monitors are unlocked as the ThreadDeath exception propagates up the stack.) If any of the objects previously protected by these monitors were in an inconsis 阅读全文
posted @ 2013-05-21 15:25 sunzn 阅读(1354) 评论(0) 推荐(0) 编辑