-
Notifications
You must be signed in to change notification settings - Fork 45.8k
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
关于 Semaphore
补充内容的错误
#2529
Comments
感谢指出,这样描述是不是更合适一些了:
|
是的,我感觉这样子描述会更好! |
好的好的,稳! |
#645 的补充内容中提到
有不准确的地方。多余的线程将会被放入等待队列
Park
后,不会再自旋判断state
是否大于 0,而是等其他线程调用release()
后,通过 AQS 的doReleaseShared()
方法唤醒。The text was updated successfully, but these errors were encountered: