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

什么导致线程阻塞-58-美团 内容有问题,导致读的时候容易理解错误 #35

Open
wyc192273 opened this issue Sep 24, 2019 · 0 comments

Comments

@wyc192273
Copy link

初看起来它们与 suspend() 和 resume() 方法对没有什么分别,但是事实上它们是截然不同的。区别的核心在于,前面叙述的所有方法,阻塞时都不会释放占用的锁(如果占用了的话),而这一对方法则相反。

这句话应该是
初看起来它们与wait()和notify()方法没有什么分别

这里写的给人感觉,好像是在特殊说明suspend和resume,但实际上后面发现是在说wait和notify

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