Ela*_*vie 5 python ctypes multiprocessing
我阅读了多处理文档.Value https://docs.python.org/2/library/multiprocessing.html#multiprocessing.Value
和multiprocessing.sharedctypes.Value的文档 https://docs.python.org/2/library/multiprocessing.html#multiprocessing.sharedctypes.Value
但无法弄清楚它们之间有什么区别.有人知道吗?谢谢!
至少在 python2.7 中,Value它只是一个围绕的包装函数sharedctypes.Value,因此只有在进行某种奇怪的类型检查时才会注意到差异。
在python3.6中,它看起来Value仍然只是一个包装器sharedctypes.Value,但它负责传递适当的上下文。