-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
改进内核任务调度机制提升稳定性 #7113
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
Comments
Closed
Closed
点赞 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在用户在相继执行一些耗时操作后容易导致竞态,虽然之前通过一些锁尽量避免竞态,但是随着业务操作种类的增加,难免会遗漏处理一些场景,从而导致系统不稳定报错,这部分实现代码的维护也较为困难。
需要一个统一的任务调度机制来确保可能导致竞态操作的序列化执行,比较好的实现方式就是使用队列,将较为耗时且可能并发的操作按顺序阻塞执行,目前包括:
The text was updated successfully, but these errors were encountered: