Skip to content

Commit e8aaa1f

Browse files
pengchen211gitee-org
authored andcommitted
删除重复的并发工具类示例
1 parent 81108d8 commit e8aaa1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/java/multi-thread/2020最新Java并发进阶常见面试题总结.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ protected final boolean compareAndSetState(int expect, int update) {
968968
- **Exclusive**(独占):只有一个线程能执行,如 `ReentrantLock`。又可分为公平锁和非公平锁:
969969
- 公平锁:按照线程在队列中的排队顺序,先到者先拿到锁
970970
- 非公平锁:当线程要获取锁时,无视队列顺序直接去抢锁,谁抢到就是谁的
971-
- **Share**(共享):多个线程可同时执行,如` CountDownLatch``Semaphore``CountDownLatch` `CyclicBarrier``ReadWriteLock` 我们都会在后面讲到。
971+
- **Share**(共享):多个线程可同时执行,如` CountDownLatch``Semaphore``CyclicBarrier``ReadWriteLock` 我们都会在后面讲到。
972972

973973
`ReentrantReadWriteLock` 可以看成是组合式,因为 `ReentrantReadWriteLock` 也就是读写锁允许多个线程同时对某一资源进行读。
974974

0 commit comments

Comments
 (0)