Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Doc/c-api/init.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,11 @@
interpreter lock is also shared by all threads, regardless of to which
interpreter they belong.
.. versionchanged:: 3.12
:pep:`684` introduced a possibility of :ref:`per-interpreter` GIL.

Check warning on line 1025 in Doc/c-api/init.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

undefined label: 'per-interpreter' [ref.ref]
See :c:func:`Py_NewInterpreterFromConfig`.
.. c:type:: PyThreadState
Expand Down Expand Up @@ -1711,6 +1716,8 @@
haven't been explicitly destroyed at that point.
.. _per-interpreter-gil:
A Per-Interpreter GIL
---------------------
Expand All @@ -1722,7 +1729,7 @@
single Python process can truly take advantage of multiple CPU cores
when running Python code. The isolation also encourages a different
approach to concurrency than that of just using threads.
(See :pep:`554`.)
(See :pep:`554` and :pep:`684`.)
Using an isolated interpreter requires vigilance in preserving that
isolation. That especially means not sharing any objects or mutable
Expand Down
Loading