Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8a54fda

Browse files
Merge pull request Snailclimb#653 from woshichengpeng/patch-2
Update AQS.md
2 parents 5b16cc9 + 4bbd174 commit 8a54fda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/java/Multithread/AQS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected final boolean compareAndSetState(int expect, int update) {
8484
- 公平锁:按照线程在队列中的排队顺序,先到者先拿到锁
8585
- 非公平锁:当线程要获取锁时,先通过两次 CAS 操作去抢锁,如果没抢到,当前线程再加入到队列中等待唤醒。
8686

87-
> 说明:下面这部分关于 `ReentrantLock` 源代码内容节选自:https://www.javadoop.com/post/AbstractQueuedSynchronizer-2,这是一篇很不错文章,推荐阅读。
87+
> 说明:下面这部分关于 `ReentrantLock` 源代码内容节选自:https://www.javadoop.com/post/AbstractQueuedSynchronizer-2,这是一篇很不错文章,推荐阅读。
8888
8989
**下面来看 ReentrantLock 中相关的源代码:**
9090

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /