Tag

GIL

0 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
May 31, 2025 · Backend Development

How to Overcome FastAPI’s CPU‑Bound Bottlenecks: Practical Parallelism Strategies

This article explains why FastAPI struggles with CPU‑intensive tasks due to Python’s Global Interpreter Lock, describes the types of workloads affected, and provides concrete solutions such as background task queues, microservices, ProcessPoolExecutor, and C/C++ extensions to keep APIs responsive and scalable.

CPU-boundGILPython
0 likes · 8 min read
How to Overcome FastAPI’s CPU‑Bound Bottlenecks: Practical Parallelism Strategies
php中文网 Courses
php中文网 Courses
Apr 18, 2025 · Fundamentals

Understanding Multithreading in Python with the threading Module

This article explains Python's multithreading concepts, covering thread creation via subclassing Thread or using target functions, synchronization mechanisms like Lock, RLock, and Condition, and discusses the impact of the Global Interpreter Lock, helping readers apply threading effectively for I/O‑bound tasks.

GILIO-boundPython
0 likes · 9 min read
Understanding Multithreading in Python with the threading Module
Python Programming Learning Circle
Python Programming Learning Circle
Apr 17, 2025 · Fundamentals

Understanding Processes, Threads, and the GIL in Python

This article explains the concepts of processes and threads, describes Python's Global Interpreter Lock (GIL) and its impact on concurrency, compares the low‑level _thread module with the higher‑level threading module, and provides example code illustrating thread creation, synchronization with locks, and common pitfalls.

GILLockPython
0 likes · 5 min read
Understanding Processes, Threads, and the GIL in Python
Python Programming Learning Circle
Python Programming Learning Circle
Mar 11, 2025 · Fundamentals

Understanding Free‑Threaded Python: Removing the GIL in CPython 3.13

The article explains the launch of py‑free‑threading.github.io, describes the Global Interpreter Lock (GIL) and its performance impact, introduces PEP 703 which makes the GIL optional, and outlines why free‑threaded Python in CPython 3.13 is a significant step for multithreaded performance.

CPythonFree ThreadingGIL
0 likes · 4 min read
Understanding Free‑Threaded Python: Removing the GIL in CPython 3.13
Python Programming Learning Circle
Python Programming Learning Circle
Mar 5, 2025 · Fundamentals

Exploring Python 3.13 Free Threading and AsyncIO Performance Without the GIL

This article examines the new free‑threading feature introduced in Python 3.13 via PEP‑703, demonstrates how asyncio.to_thread can be used for CPU‑bound tasks, and compares execution times with and without the GIL on an M3 MacBook Pro, showing a clear performance gain.

GILPEP-703asyncio
0 likes · 5 min read
Exploring Python 3.13 Free Threading and AsyncIO Performance Without the GIL
Python Programming Learning Circle
Python Programming Learning Circle
Mar 4, 2025 · Fundamentals

Understanding Python's Global Interpreter Lock (GIL) and Its Future Removal

This article explains what the Python Global Interpreter Lock (GIL) is, why it was introduced, how it affects multithreading and multiprocessing, and discusses recent efforts to make the GIL optional and eventually remove it from CPython.

GILPythonconcurrency
0 likes · 7 min read
Understanding Python's Global Interpreter Lock (GIL) and Its Future Removal
Python Programming Learning Circle
Python Programming Learning Circle
Dec 17, 2024 · Fundamentals

Key Updates in Python 3.13: Improved REPL, Free‑Threaded Python, and Random CLI

Python 3.13 introduces major enhancements such as an improved REPL with multi‑line editing and colored error messages, the experimental free‑threaded build that removes the Global Interpreter Lock, and a new command‑line interface for the random module, all aimed at boosting developer productivity.

3.13Free ThreadingGIL
0 likes · 8 min read
Key Updates in Python 3.13: Improved REPL, Free‑Threaded Python, and Random CLI
Python Programming Learning Circle
Python Programming Learning Circle
Oct 29, 2024 · Fundamentals

New Features in Python 3.13: Updated REPL, GIL Removal, and Other Enhancements

The article introduces Python 3.13, explains how to install it via conda, and details major updates such as an improved interactive REPL, the optional removal of the Global Interpreter Lock, and a collection of miscellaneous language and tooling enhancements.

CondaFeaturesGIL
0 likes · 7 min read
New Features in Python 3.13: Updated REPL, GIL Removal, and Other Enhancements
Python Programming Learning Circle
Python Programming Learning Circle
Oct 21, 2024 · Fundamentals

New Features in Python 3.13: Interactive Interpreter, Free Threading, Experimental JIT, and Other Updates

Python 3.13 introduces a revamped interactive interpreter with multiline editing, experimental free‑threading that can disable the GIL, an optional JIT compiler, module deprecations, new random CLI utilities, and updated locals behavior, offering developers a more powerful and flexible programming experience.

3.13Free ThreadingGIL
0 likes · 7 min read
New Features in Python 3.13: Interactive Interpreter, Free Threading, Experimental JIT, and Other Updates
Python Programming Learning Circle
Python Programming Learning Circle
Oct 7, 2023 · Fundamentals

Understanding Python Threads, Processes, GIL, and Multiprocessing

This article explains the fundamental differences between threads and processes, the role of Python's Global Interpreter Lock (GIL), and provides a comprehensive guide to using the multiprocessing module, its components, synchronization primitives, and the concurrent.futures API for parallel execution in Python.

GILParallelismconcurrency
0 likes · 36 min read
Understanding Python Threads, Processes, GIL, and Multiprocessing
Python Programming Learning Circle
Python Programming Learning Circle
Sep 20, 2023 · Fundamentals

Understanding Threads, Processes, GIL, and Multiprocessing in Python

This article explains the fundamental differences between threads and processes, the role of Python's Global Interpreter Lock (GIL), and provides a comprehensive guide to using the multiprocessing module and concurrent.futures for parallel execution, including code examples and synchronization primitives.

GILconcurrencyconcurrent.futures
0 likes · 41 min read
Understanding Threads, Processes, GIL, and Multiprocessing in Python
Tencent Cloud Developer
Tencent Cloud Developer
Sep 11, 2023 · Fundamentals

Understanding Python's Global Interpreter Lock (GIL) and Its Impact

The article explains Python’s Global Interpreter Lock—its historical origins, how CPython’s tick‑based and later time‑slice schedulers manage thread execution, why it limits multi‑core performance, common multiprocessing workarounds, and the difficulties of removing it despite recent proposals for a GIL‑free build.

GILInterpreterPython
0 likes · 15 min read
Understanding Python's Global Interpreter Lock (GIL) and Its Impact
Python Programming Learning Circle
Python Programming Learning Circle
Aug 2, 2023 · Fundamentals

Python's Global Interpreter Lock (GIL) Becomes Optional: Details and Roadmap

The article explains that the Python community is planning to make the Global Interpreter Lock optional, describing what the GIL is, its limitations, the contributions behind the change, and a multi‑stage roadmap from experimental builds in Python 3.13/3.14 to a long‑term default no‑GIL configuration.

CPythonGILPEP703
0 likes · 6 min read
Python's Global Interpreter Lock (GIL) Becomes Optional: Details and Roadmap
Python Programming Learning Circle
Python Programming Learning Circle
Jul 24, 2023 · Fundamentals

Meta Supports PEP 703: Making the GIL Optional in CPython

Meta is backing PEP 703, which proposes adding a --disable-gil build option to CPython so that Python code can run without the Global Interpreter Lock, improving multithreaded performance on multi‑core CPUs, with Meta promising engineering resources to help implement it by 2025.

CPythonGILMeta
0 likes · 3 min read
Meta Supports PEP 703: Making the GIL Optional in CPython
IT Services Circle
IT Services Circle
Jul 14, 2023 · Fundamentals

Meta Supports PEP 703 to Make the CPython GIL Optional

Meta is promoting PEP 703, which proposes adding a --disable-gil build option to CPython so Python can run without the Global Interpreter Lock, and has pledged three engineer‑years by 2025 to help implement the change, while also noting its Threads product already runs on a heavily modified CPython backend.

CPythonGILMeta
0 likes · 3 min read
Meta Supports PEP 703 to Make the CPython GIL Optional
TAL Education Technology
TAL Education Technology
Jun 2, 2022 · Fundamentals

Python Concurrency Programming: Threads, Processes, GIL, and Thread Pools

This article explains how Python concurrency can boost program performance, covering multithreading, multiprocessing, the Global Interpreter Lock, thread safety, thread pools, and practical code examples for speeding up I/O‑bound and CPU‑bound tasks.

GILPythonconcurrency
0 likes · 15 min read
Python Concurrency Programming: Threads, Processes, GIL, and Thread Pools
Python Programming Learning Circle
Python Programming Learning Circle
May 21, 2022 · Fundamentals

Updates on the Python nogil Project and GIL Removal Efforts

At the 2022 Python Language Summit, Sam Gross presented the latest progress on the nogil project, targeting Python 3.9, discussing new lock designs, proposed compiler flags to disable the GIL in Python 3.12, and the potential impact on third‑party libraries and CPython development.

CPythonGILPython
0 likes · 6 min read
Updates on the Python nogil Project and GIL Removal Efforts
Python Programming Learning Circle
Python Programming Learning Circle
Apr 15, 2022 · Fundamentals

Why Python Struggles with Large Projects: Variable Declarations, Module Management, Dependencies, and Concurrency

The article examines the challenges of using Python for large-scale projects, highlighting issues such as implicit variable declarations, complex module dependencies, version conflicts, the Global Interpreter Lock, and concurrency limitations, while comparing Python to languages like C, Go, and Java.

DependenciesGILModules
0 likes · 13 min read
Why Python Struggles with Large Projects: Variable Declarations, Module Management, Dependencies, and Concurrency
Architecture Digest
Architecture Digest
Jan 24, 2022 · Fundamentals

Understanding Python Threads, Processes, GIL, and the multiprocessing & concurrent.futures Modules

This article explains the fundamental differences between threads and processes, the role of Python's Global Interpreter Lock, and provides a comprehensive guide to using the multiprocessing and concurrent.futures modules—including their main classes, synchronization primitives, and practical code examples—for effective concurrent programming in Python.

GILParallelismPython
0 likes · 40 min read
Understanding Python Threads, Processes, GIL, and the multiprocessing & concurrent.futures Modules