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

线程安全 #9

Open
neal-zhu opened this issue Sep 20, 2018 · 0 comments
Open

线程安全 #9

neal-zhu opened this issue Sep 20, 2018 · 0 comments

Comments

@neal-zhu
Copy link

neal-zhu commented Sep 20, 2018

请问这个是生产环境使用的代码吗?使用线程模式的话,连锁都不需要加吗?比如后台轮询线程会遍历 self._notification_map,前台线程在调用 get_value 的时候也有可能会修改 self._notification_map,这种情况下,应该会 crash 吧?之前并没有做个 python 多线程,求教

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