GIL

Technology & Computing abbreviation · Programming

GIL
Stands forGlobal interpreter lock
CategoriesTechnology & Computing

GIL stands for Global interpreter lock, a programming abbreviation.

A lock in CPython, the standard Python interpreter, that lets only one thread execute Python bytecode at a time. It simplifies memory management but stops CPU-heavy threads from running in parallel on multiple cores.

Example: Threads won't speed up this number crunching because of the GIL; use multiprocessing instead.

Usage notes

PEP 703 led to an experimental free-threaded build of CPython 3.13 in 2024 that runs without the lock, and later releases moved it toward full support. Ruby's main interpreter has a similar lock called the GVL. Threaded code that mostly waits on I/O suffers less, because the lock is released while waiting.

More programming abbreviations

  • FORTRAN – Formula Translation
  • FP – Functional programming
  • FSM – Finite-state machine
  • GC – Garbage collection
  • GCC – GNU Compiler Collection
  • GDB – GNU Debugger
  • GoF – Gang of Four
  • grep – Globally search for a regular expression and print
  • gRPC – gRPC Remote Procedure Calls
  • GUID – Globally unique identifier
  • HATEOAS – Hypermedia as the Engine of Application State
  • i18n – Internationalization

See all 154 programming abbreviations →