AbstractQueuedSynchronizer AQS类图

1.AQS main structure

  

2.public methods and properties (subclass does not need to override, most methods are final)

  

3. External class of concurrency control and AQS reference -Semphore CountDownLatch

  

4. External -ReentrantLock concurrency control and a class reference to the AQS ReentrantReadWriteLock

  

The thread pool ThreadPoolExecutor and ScheduledThreadPoolExecutor use of AQS

  

 

Guess you like

Origin www.cnblogs.com/gc65/p/11221370.html