Skip to content

Commit 5e10891

Browse files
authored
Merge pull request Snailclimb#430 from 0ffff/master
修改避免死锁为预防死锁
2 parents 3159367 + b61b1f6 commit 5e10891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/java/Multithread/并发编程基础知识.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ Thread[线程 2,5,main]waiting get resource1
340340
1. 不剥夺条件:线程已获得的资源在末使用完之前不能被其他线程强行剥夺,只有自己使用完毕后才释放资源。
341341
1. 循环等待条件:若干进程之间形成一种头尾相接的循环等待资源关系。
342342

343-
### 如何避免线程死锁?
343+
### 如何预防线程死锁?
344344

345345
我们只要破坏产生死锁的四个条件中的其中一个就可以了。
346346

0 commit comments

Comments
 (0)