Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么需要递归锁,它解决的问题是什么 #88

Open
tbfungeek opened this issue Feb 13, 2020 · 0 comments
Open

为什么需要递归锁,它解决的问题是什么 #88

tbfungeek opened this issue Feb 13, 2020 · 0 comments

Comments

@tbfungeek
Copy link
Owner

为了解决互斥锁在重复加锁会导致死锁的问题,递归锁重复加锁不会死锁,只会计算加锁次数,只有在加锁次数等于解锁次数的时候锁才会释放。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant