java锁(8)工具类CountDownLatch、CyclicBarrier、Semaphore详解
1、CountDownLatch实现CountDownLatch的实现基于AQS的共享模式,其Sync实现如下:privatestaticfinalclassSyncextendsAbstractQueuedSynchronizer{privatestaticfinallongserialVersionUID=4982264981922014374L;//初始的count值,state中保存此co