Global Interpreter Lock (GIL)

GPTKB entity

Statements (30)
Predicate Object
gptkbp:instanceOf interpreter mechanism
gptkbp:abbreviation gptkb:GIL
gptkbp:compatibleWith gptkb:IronPython
gptkb:Jython
gptkb:GraalVM_Python
gptkbp:criticizedFor hinders multi-core CPU utilization
gptkbp:discusses gptkb:PEP_703
gptkb:Python_Enhancement_Proposals
gptkb:Python_mailing_lists
gptkbp:documentedIn gptkb:Python_documentation
gptkbp:effect prevents race conditions in interpreter internals
simplifies memory management
limits concurrency in multi-threaded Python programs
https://www.w3.org/2000/01/rdf-schema#label Global Interpreter Lock (GIL)
gptkbp:introducedIn gptkb:CPython_1.5
gptkbp:purpose prevents multiple native threads from executing Python bytecodes at once
gptkbp:relatedTo gptkb:Python_threading
memory management
thread safety
Python concurrency
reference counting
gptkbp:removalProposed gptkb:PEP_703
gptkbp:removalStatus optional in Python 3.13 (proposed)
gptkbp:usedIn gptkb:CPython
gptkb:Ruby_MRI
PyPy (optional)
gptkbp:workaround use C extensions for compute-intensive tasks
use multiprocessing for parallelism
gptkbp:bfsParent gptkb:CPython
gptkbp:bfsLayer 6