摘要: 我们接着上一篇文章继续,本文讲讲解ReentrantLock 公平锁和非公平锁的区别,深入分析 AbstractQueuedSynchronizer 中的 ConditionObject 公平锁和非公平锁 ReentrantLock 默认采用非公平锁,除非你在构造方法中传入参数 true 。 pub 阅读全文
posted @ 2018-12-28 10:09 chen_hao 阅读(1350) 评论(1) 推荐(2) 编辑