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 5c5fc7c

Browse files
Merge branch 'master' of https://github.com/Snailclimb/JavaGuide
2 parents c2e969c + d354380 commit 5c5fc7c

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
@@ -229,7 +229,7 @@ Thread[线程 2,5,main]waiting get resource1
229229

230230
1. 互斥条件:该资源任意一个时刻只由一个线程占用。
231231
2. 请求与保持条件:一个进程因请求资源而阻塞时,对已获得的资源保持不放。
232-
3. 不剥夺条件:线程已获得的资源在末使用完之前不能被其他线程强行剥夺,只有自己使用完毕后才释放资源。
232+
3. 不剥夺条件:线程已获得的资源在未使用完之前不能被其他线程强行剥夺,只有自己使用完毕后才释放资源。
233233
4. 循环等待条件:若干进程之间形成一种头尾相接的循环等待资源关系。
234234

235235
### 8.2. 如何避免线程死锁?

0 commit comments

Comments
(0)

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