Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81cf973 commit ed5feacCopy full SHA for ed5feac
2 files changed
.stat.json
@@ -1 +1 @@
1
-{"translation": "90.61%", "updated_at": "2024-01-23T13:24:44Z"}
+{"translation": "90.61%", "updated_at": "2024-01-23T14:23:55Z"}
c-api/init.po
@@ -926,6 +926,9 @@ msgid ""
926
"the same object, the reference count could end up being incremented only "
927
"once instead of twice."
928
msgstr ""
929
+"Python 解释器不是完全线程安全的。 为了支持多线程的 Python 程序,设置了一个全局锁,称为 :term:`global "
930
+"interpreter lock` 或 :term:`GIL`,当前线程必须在持有它之后才能安全地访问 Python 对象。 "
931
+"如果没有这个锁,即使最简单的操作也可能在多线程的程序中导致问题:例如,当两个线程同时增加相同对象的引用计数时,引用计数可能最终只增加了一次而不是两次。"
932
933
#: ../../c-api/init.rst:661
934
msgid ""
0 commit comments