1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Update aqs.md

勘误:“ CountDownLatCh” 改为 “ CountDownLatch”
This commit is contained in:
Dayu 2022-03-29 17:06:28 +08:00 committed by GitHub
parent 45660b1f11
commit d9f0683677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,7 +189,7 @@ final boolean nonfairTryAcquire(int acquires) {
**2)Share**(共享)
多个线程可同时执行,如 `Semaphore/CountDownLatch``Semaphore``CountDownLatCh`、 `CyclicBarrier``ReadWriteLock` 我们都会在后面讲到。
多个线程可同时执行,如 `Semaphore/CountDownLatch``Semaphore``CountDownLatch`、 `CyclicBarrier``ReadWriteLock` 我们都会在后面讲到。
`ReentrantReadWriteLock` 可以看成是组合式,因为 `ReentrantReadWriteLock` 也就是读写锁允许多个线程同时对某一资源进行读。