File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1184,6 +1184,12 @@ code, or when embedding the Python interpreter:
1184
1184
interpreter lock is also shared by all threads, regardless of to which
1185
1185
interpreter they belong.
1186
1186
1187
+ .. versionchanged:: 3.12
1188
+
1189
+ :pep:`684` introduced the possibility
1190
+ of a :ref:`per-interpreter GIL <per-interpreter-gil>`.
1191
+ See :c:func:`Py_NewInterpreterFromConfig`.
1192
+
1187
1193
1188
1194
.. c:type:: PyThreadState
1189
1195
@@ -1875,6 +1881,8 @@ function. You can create and destroy them using the following functions:
1875
1881
haven't been explicitly destroyed at that point.
1876
1882
1877
1883
1884
+ .. _per-interpreter-gil:
1885
+
1878
1886
A Per-Interpreter GIL
1879
1887
---------------------
1880
1888
@@ -1886,7 +1894,7 @@ being blocked by other interpreters or blocking any others. Thus a
1886
1894
single Python process can truly take advantage of multiple CPU cores
1887
1895
when running Python code. The isolation also encourages a different
1888
1896
approach to concurrency than that of just using threads.
1889
- (See :pep:`554`.)
1897
+ (See :pep:`554` and :pep:`684` .)
1890
1898
1891
1899
Using an isolated interpreter requires vigilance in preserving that
1892
1900
isolation. That especially means not sharing any objects or mutable
You can’t perform that action at this time.
0 commit comments