type
Post
status
Draft
date
May 15, 2024
slug
summary
tags
category
icon
password
URL
 
💡
AQS是ReentrantLock 的底层实现

What is AQS

AQS 就是一个抽象类,主要用来构建锁和同步器。
AQS 为构建锁和同步器提供了一些通用功能的实现,因此,使用 AQS 能简单且高效地构造出应用广泛的大量的同步器,比如我们提到的 ReentrantLockSemaphore,其他的诸如 ReentrantReadWriteLockSynchronousQueue等等皆是基于 AQS 的.
 

How AQS Work

 
 

📎 参考文章

Loading...