-
Notifications
You must be signed in to change notification settings - Fork 125
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
异步同步数据,为什么每次都创建新线程 #2
Labels
Comments
很有价值的issue,设计之初没有考虑到,谢谢提醒。 |
既然是异步,asyncSetPersistentTimestamp方法上加synchronized又有什么用呢? |
@chengnl asyncSetPersistentTimestamp加synchronized是为了避免同时被调用到,同步方法里new新线程就是为了执行异步操作。这部分有点绕,会整理好的。 |
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: