我畫了35張圖就是爲了讓你深入 AQS

談到併發,我們不得不說AQS(AbstractQueuedSynchronizer),所謂的AQS即是抽象的隊列式的同步器,內部定義了很多鎖相關的方法,我們熟知的ReentrantLock、ReentrantReadWriteLock、CountDownLatch、Semaphore等都是基於AQS來實現的。 閱讀全文: http://gitbook.cn/gitchat/activity/5ea
相關文章
相關標籤/搜索