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

Merge pull request #1650 from DayuZhu/patch-2

Update aqs.md
This commit is contained in:
Guide 2022-03-29 20:32:11 +08:00 committed by GitHub
commit ba1034e2d2
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` 也就是读写锁允许多个线程同时对某一资源进行读。