Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
Python interview question
Concurrency & parallelismSeniorOccasionalTheory

What is free-threaded Python, and what is its current status as of Python 3.14?

Answer

Free-threaded Python is a build of CPython, proposed by PEP 703, that removes the GIL entirely so multiple threads can execute Python bytecode truly in parallel on multiple cores, using more fine-grained internal locking and a different memory management scheme instead. PEP 779 defined the criteria for calling this build officially supported, and Python 3.14 met those criteria, making free-threading officially supported for the first time — but it remains an opt-in alternative build, not the default, because it carries a single-threaded performance cost and many C-extension packages are not yet fully compatible with it.

Strong answer includes

  • PEP 703 build removes the GIL for true parallel bytecode execution
  • PEP 779 set the criteria; 3.14 made it officially supported
  • still opt-in, not default, due to single-thread overhead and extension compatibility

Practical example

Running `python3.14t` (the free-threaded build) lets a CPU-bound thread pool actually scale across cores, something impossible on the standard GIL build, but a third-party extension without free-threading support may re-enable the GIL automatically when imported.

#gil#free-threading#python-3-14

Sources

PEP 703 — Making the Global Interpreter Lock OptionalPython Software Foundation · The technical proposal behind the free-threaded CPython buildPEP 779 — Criteria for supported status for free-threaded PythonPython Software Foundation · The criteria that made free-threaded Python officially supported starting with 3.14Python support for free threadingPython Software Foundation · The GIL, the free-threaded build and its compatibility trade-offs