Skip to content

Commit

Permalink
Merge pull request Snailclimb#430 from 0ffff/master
Browse files Browse the repository at this point in the history
修改避免死锁为预防死锁
  • Loading branch information
Snailclimb authored Aug 18, 2019
2 parents 3159367 + b61b1f6 commit 5e10891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/java/Multithread/并发编程基础知识.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ Thread[线程 2,5,main]waiting get resource1
1. 不剥夺条件:线程已获得的资源在末使用完之前不能被其他线程强行剥夺,只有自己使用完毕后才释放资源。
1. 循环等待条件:若干进程之间形成一种头尾相接的循环等待资源关系。

### 如何避免线程死锁?
### 如何预防线程死锁?

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

Expand Down

0 comments on commit 5e10891

Please sign in to comment.