摘要: AbstractQueuedSynchronizer,简称AQS,是JUC中Lock机制的实现的前提,大部分锁的实现都是以这个为基础的。看下这个类的注释: 1 /** 2 * Wait queue node class. 3 * 4 * <p>The wait queue is a variant of a "CLH" (Crai哦, Landin, and 5 * Hagersten) lock queue. CLH locks are normally used for 6 * spinlocks. We instead use them... 阅读全文
posted @ 2012-11-08 20:23 flying_wind 阅读(599) 评论(0) 推荐(0) 编辑