ReentrantReadWriteLock讀寫鎖及其在 RxCache 中的使用

cool girl.jpg 一. ReentrantReadWriteLock讀寫鎖 Lock 是相當於 synchronized 更面向對象的同步方式,ReentrantLock 是 Lock 的實現。 本文要介紹的 ReentrantReadWriteLock 跟 ReentrantLock 並沒有直接的關係,因爲它們之間沒有繼承和實現的關係。 但是 ReentrantReadWriteLoc
相關文章
相關標籤/搜索