2017年4月26日

Java学习笔记-线程通讯 2

摘要: 之前 1 用到了通过利用the Thread owned the monitor of the thread pool 去调用处于同步监听 object 的 wait 、notify 、notifyall 三个方法来实现线程通讯的执行 主要清晰当存在synchronize block 时 ,同步监听 阅读全文

posted @ 2017-04-26 22:11 吸毒术士柯震东 阅读(143) 评论(0) 推荐(0) 编辑

Java 学习笔记-阻塞 和 死锁

摘要: 首先从 Thread中的两个deprecated方法说起 : suspend 和 resume 废除的原因很简单,because it s deadlock-prone。 /*This method has been deprecated, as it is inherently deadlock- 阅读全文

posted @ 2017-04-26 14:54 吸毒术士柯震东 阅读(311) 评论(0) 推荐(0) 编辑

导航