ReentrantLock的公平锁源码分析
## AbstractQueuedSynchronizer#acquire
```java
/**
* 尝试获取锁
* Acquires in exclusive mode, ignoring interrupts. Implemented
* by invoking at least once {@link #tryAcquire},
* returning on success. Otherwise the thread is queued, possibly
* repeatedly ...
原创
2021-06-25 01:16:48 ·
183 阅读 ·
0 评论