【发布时间】:2011-08-17 20:17:46
【问题描述】:
在阅读了各种解释 GIS 和 Python 线程的文章以及非常有用的答案 Are locks unnecessary in multi-threaded Python code because of the GIL? 之后,我有一个“最后一个问题”。
如果理想情况下,我的线程仅通过atomic (Python VM) instructions 对共享数据进行操作,例如将项目附加到列表中,不需要锁,对吗?
【问题讨论】:
-
不要使用链接缩短器。此外,本网站上其他问题的链接会自动替换为问题的标题。
标签: python multithreading gil