File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1020,6 +1020,11 @@ code, or when embedding the Python interpreter:
10201020 interpreter lock is also shared by all threads, regardless of to which
10211021 interpreter they belong.
10221022
1023+ .. versionchanged:: 3.12
1024+
1025+ :pep:`684` introduced a possibility of :ref:`per-interpreter` GIL.
1026+ See :c:func:`Py_NewInterpreterFromConfig`.
1027+
10231028
10241029.. c:type:: PyThreadState
10251030
@@ -1711,6 +1716,8 @@ function. You can create and destroy them using the following functions:
17111716 haven't been explicitly destroyed at that point.
17121717
17131718
1719+ .. _per-interpreter-gil:
1720+
17141721A Per-Interpreter GIL
17151722---------------------
17161723
@@ -1722,7 +1729,7 @@ being blocked by other interpreters or blocking any others. Thus a
17221729single Python process can truly take advantage of multiple CPU cores
17231730when running Python code. The isolation also encourages a different
17241731approach to concurrency than that of just using threads.
1725- (See :pep:`554`.)
1732+ (See :pep:`554` and :pep:`684` .)
17261733
17271734Using an isolated interpreter requires vigilance in preserving that
17281735isolation. That especially means not sharing any objects or mutable
You can’t perform that action at this time.
0 commit comments