# What Is the Python Global Interpreter Lock (GIL)?

DevFeed: [What Is the Python Global Interpreter Lock (GIL)?](<https://devfeed.tech/articles/what-is-the-python-global-interpreter-lock-gil-97822.md>)

Original publisher: [Read original article](<https://realpython.com/python-gil/>)

Author: Abhinav Ajitsaria

Published: 2026-10-23T14:00:00Z

Content type: article

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [locking](<https://devfeed.tech/topics/locking.md>), [Python](<https://devfeed.tech/topics/python.md>), [Process](<https://devfeed.tech/topics/process.md>), [scheduling](<https://devfeed.tech/topics/scheduling.md>)

Tags: [acquisition](<https://devfeed.tech/tags/acquisition.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [argument](<https://devfeed.tech/tags/argument.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [build](<https://devfeed.tech/tags/build.md>), [bytecode](<https://devfeed.tech/tags/bytecode.md>), [c](<https://devfeed.tech/tags/c.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [code](<https://devfeed.tech/tags/code.md>), [collection](<https://devfeed.tech/tags/collection.md>), [compilers](<https://devfeed.tech/tags/compilers.md>), [core](<https://devfeed.tech/tags/core.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [cpython](<https://devfeed.tech/tags/cpython.md>), [gil](<https://devfeed.tech/tags/gil.md>), [interpreter](<https://devfeed.tech/tags/interpreter.md>), [mutex](<https://devfeed.tech/tags/mutex.md>), [performance](<https://devfeed.tech/tags/performance.md>), [python](<https://devfeed.tech/tags/python.md>), [thread](<https://devfeed.tech/tags/thread.md>)

## AI overview

CPython's GIL protects shared reference counts with one interpreter-wide lock, but it allows only one thread to execute Python bytecode at a time. That makes CPU-bound multithreaded work unable to use multiple cores and can add lock overhead; I/O-bound threads are less affected, though older GIL scheduling could starve them. The text compares multiprocessing, which enables parallel execution at the cost of process overhead and separate memory, with subinterpreters, which provide per-interpreter GILs and isolation within one process. It also notes that GIL behavior differs among Python implementations. Free-threaded CPython builds are available from Python 3.13 and officially supported in 3.14, but remain optional, and extensions must declare compatibility or the GIL is re-enabled. The default CPython build still uses the GIL.

## Source excerpt

The Python GIL is a mutex that lets only one thread control the interpreter at a time. Learn how it shapes your program's performance.