Tagged articles
GIL
66 articles · Page 1 of 1
This article explains the inner workings of Python’s Global Interpreter Lock (GIL), why it exists, how it is released during I/O and C‑extension calls, its impact on CPU‑bound versus I/O‑bound workloads, practical synchronization primitives, benchmarking results, and the upcoming free‑threading mode in Python 3.13.
ConcurrencyGILMultithreading
0 likes · 30 min read

This article examines Python's three concurrency models—threading, multiprocessing, and asyncio coroutines—detailing their underlying mechanisms, performance traits, suitable use‑cases, and the impact of the Global Interpreter Lock, followed by a hybrid web‑server implementation example.
ConcurrencyGILPython
0 likes · 9 min read

Python 3.14 introduces optional no‑GIL support, free‑threading, a concurrent interpreter and performance gains, while Guido van Rossum cautions about over‑hyped expectations, discussing the trade‑offs, impact on AI workloads, and the language’s future in an in‑depth interview.
AIConcurrencyGIL
0 likes · 12 min read

Python 3.14 introduces optional no‑GIL support, free‑threading, a concurrent interpreter and debugger improvements, offering 3‑5% performance gains while trading a slight single‑thread slowdown and higher memory usage, and includes an extensive interview with Guido van Rossum on the language’s future.
GILMultithreadingPython
0 likes · 14 min read

Python 3.14 officially launches with optional no‑GIL support, introducing free‑threading, a concurrent interpreter, and performance gains of 3‑5%, while Guido van Rossum shares candid insights on the trade‑offs, the future of Python’s concurrency, type hints, and its role in AI and software development.
AIGILPython
0 likes · 14 min read

This comprehensive guide explores Python concurrency and parallelism, covering threading, multiprocessing, async/await, the GIL, thread safety, thread pools, process pools, producer‑consumer patterns, performance testing, and practical best‑practice recommendations for choosing the right concurrency model.
ConcurrencyGILThread Safety
0 likes · 25 min read

This article explains the differences between concurrency and parallelism, the impact of Python's Global Interpreter Lock, and provides a detailed comparison of threading, multiprocessing, and asyncio with code examples, performance tests, decision flowcharts, mixed‑usage patterns, common pitfalls, and best‑practice recommendations for choosing the right approach.
GILasynciomultiprocessing
0 likes · 11 min read

Python’s async features, introduced in 3.5, excel at network I/O but face limitations from the GIL, lack of async file I/O, and fragmented library support, while upcoming 3.14 enhancements like free threads and sub‑interpreters promise broader concurrency, yet raise new integration challenges.
ConcurrencyGILIO
0 likes · 17 min read

Python 3.14 entered the testing phase and brings seven core enhancements—including t‑strings, intelligent error suggestions, guarded pattern matching, per‑interpreter GIL control, ReadOnly/TypeIs type hints, native Zstandard compression, and a zero‑overhead debugger—that will impact web development, data pipelines, and high‑performance computing.
3.14GILNew Features
0 likes · 19 min read

This article explains the history and drawbacks of Python’s Global Interpreter Lock, introduces PEP 703’s optional no‑GIL build, provides step‑by‑step installation instructions, showcases performance benchmarks, and discusses the impact on developers and the Python community.
GILPEP703Python
0 likes · 10 min read

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 BoundConcurrencyFastAPI
0 likes · 8 min read

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-boundMultithreading
0 likes · 9 min read

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.
ConcurrencyGILLock
0 likes · 5 min read

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.
CPythonGILMultithreading
0 likes · 4 min read

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.
ConcurrencyGILPEP-703
0 likes · 5 min read

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.
ConcurrencyGILMultithreading
0 likes · 7 min read

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


21CTONov 13, 2024 · Fundamentals
The article examines CPython 3.13’s new free‑threading mode, its impact on the Global Interpreter Lock, benchmark results using a PageRank example, and practical multithreaded and multiprocessing implementations to show how performance can dramatically improve on modern multicore CPUs.
CPythonGILMultithreading
0 likes · 14 min read

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.
GILPython 3.13REPL
0 likes · 7 min read

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.13GILInteractive Interpreter
0 likes · 7 min read


21CTOOct 19, 2024 · Fundamentals
Python's Global Interpreter Lock (GIL) serializes thread execution to protect memory, but in today's multicore era it creates performance bottlenecks; this article explains what the GIL is, why it exists, its impact on multithreading, and how multiprocessing can bypass its limitations.
GILMultithreadingPython
0 likes · 6 min read


21CTOJun 17, 2024 · Fundamentals
At PyCon 2024, experts demonstrated how static typing, Cython compilation, static‑linked C extensions, and sub‑interpreter architectures can dramatically accelerate Python code, reduce runtime overhead, and mitigate GIL limitations, offering practical pathways for faster, more scalable Python applications.
CythonGILOptimization
0 likes · 11 min read


21CTOMay 18, 2024 · Fundamentals
This article traces the history of the Python Global Interpreter Lock, explains why it remains a performance bottleneck, and examines recent efforts such as multiprocessing, PEP 554, and sub‑interpreters that aim to mitigate or eliminate the GIL in CPython.
CPythonConcurrencyGIL
0 likes · 10 min read


21CTOMay 11, 2024 · Fundamentals
Python 3.13 beta introduces groundbreaking features such as an optional GIL, an experimental JIT compiler, and various module improvements, while the Redmonk ranking confirms Python’s surge to the second most popular language, reflecting its growing role in AI, data science, and modern development.
3.13GILJIT
0 likes · 6 min read


21CTOMar 14, 2024 · Fundamentals
The article explains how Python's CPython interpreter is set to make the Global Interpreter Lock optional through PEP 703, detailing the recent merge that adds PYTHON_GIL=0 support, the expected Python 3.13 release date, and the potential impact on concurrency and AI workloads.
ConcurrencyGILPEP703
0 likes · 5 min read

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.
ConcurrencyGILParallelism
0 likes · 36 min read

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.
GILMultithreadingconcurrent.futures
0 likes · 41 min read

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.
ConcurrencyGILMultithreading
0 likes · 15 min read

Python’s Global Interpreter Lock is slated for optional removal, with a multi‑stage roadmap that begins experimental support in Python 3.13, promises broader adoption in the mid‑term, and aims for default status within five years, reshaping concurrency for AI and other workloads.
AIGILPython
0 likes · 6 min read

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

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 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.
CPythonConcurrencyGIL
0 likes · 3 min read

This article explains the Global Interpreter Lock (GIL) in CPython, how it serializes thread execution on both single‑ and multi‑core CPUs, why it hampers parallelism, and what code patterns are safe or unsafe under its coarse‑grained locking.
CPythonGILMultithreading
0 likes · 7 min read

This article explains the purpose and mechanics of Python’s Global Interpreter Lock (GIL), how it serializes bytecode execution on single- and multi‑core CPUs, its impact on I/O‑bound versus CPU‑bound workloads, and why certain operations remain thread‑safe despite the lock.
CPythonGILMultithreading
0 likes · 8 min read

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.
GILMultithreadingPython
0 likes · 15 min read

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.
CPythonConcurrencyGIL
0 likes · 6 min read

At the 2022 Python Language Summit, developer Sam Gross presented a proposal to eliminate CPython's Global Interpreter Lock by adding a new, more efficient lock mechanism that could debut in Python 3.12, sparking extensive discussion about multithreading performance and implementation challenges.
CPythonGILLock
0 likes · 4 min read


21CTOMay 16, 2022 · Fundamentals
The upcoming CPython release in October promises major performance improvements, new browser support, and a potential removal of the Global Interpreter Lock, reflecting industry‑backed efforts from Meta, Microsoft, and the Python core team to modernize the language.
GILhotpyinterpreter
0 likes · 4 min read

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.
ConcurrencyGILLanguage comparison
0 likes · 13 min read

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.
ConcurrencyGILMultithreading
0 likes · 40 min read


21CTOJan 1, 2022 · Fundamentals
This article provides a comprehensive guide to Python concurrency, covering the fundamental differences between threads and processes, the impact of the Global Interpreter Lock, and detailed usage of the multiprocessing module with its various components and synchronization primitives.
ConcurrencyGILmultiprocessing
0 likes · 38 min read

This article explains the fundamental differences between threads and processes, the role of Python's Global Interpreter Lock (GIL), and how to use the multiprocessing package—including Process, Pool, Queue, Pipe, and synchronization primitives—as well as an overview of concurrent.futures for high‑level concurrent programming in Python.
ConcurrencyGILPython
0 likes · 38 min read

This article summarizes Sam Gross’s nogil project—a Python 3.9 fork that removes the GIL—detailing its design changes, early benchmarks, integration challenges, and the community’s discussion on feasibility, performance, and the roadmap toward a GIL‑free CPython.
CPythonConcurrencyGIL
0 likes · 18 min read

This article explains how to implement simple counters in Python, demonstrates why a naïve single‑thread counter is not safe for concurrent use, and presents three thread‑safe alternatives—using a lock, leveraging the GIL with itertools.count, and a combined fast‑read/fast‑write design—along with a performance comparison.
GILThread Safety
0 likes · 8 min read

This article enumerates frequent Python pitfalls—including UnboundLocalError, mutable default arguments, subtle differences between x+=y and x=x+y, tuple syntax, shared mutable containers, list mutation during iteration, closure late binding, misuse of del, import inconsistencies, version‑specific changes, and the GIL—providing explanations and correct practices to help developers write safer code.
GILVersion Compatibilityclosures
0 likes · 13 min read

The article examines why many senior developers are skeptical of Python, highlighting drawbacks of dynamic typing, the Global Interpreter Lock, excessive whitespace sensitivity, and lack of backward compatibility, while providing code examples and comparisons with statically‑typed languages to illustrate these issues.
GILWhitespace Sensitivitybackward compatibility
0 likes · 8 min read

This article examines the community’s expectations for Python 4, compares past version transitions, highlights Guido van Rossum’s clarification that Python 4 should remain compatible with Python 3, and discusses the performance improvements needed for a successful upgrade.
GILJITLanguage Evolution
0 likes · 5 min read

Since its early 1990s debut, Python has surged ahead of many languages due to its readability and extensive libraries, yet it suffers from performance and memory drawbacks, GIL constraints, and limited mobile support, prompting a comparison with emerging languages like Julia, Rust, and Swift.
GILLanguage comparisonProgramming Language
0 likes · 7 min read


21CTONov 16, 2020 · Fundamentals
The article examines Python's enduring popularity, highlighting its readability, rich ecosystem, and corporate adoption while also discussing its performance drawbacks, memory usage, GIL limitation, and challenges in mobile and high‑performance computing, before comparing it to emerging languages.
GILLanguage comparisonPython
0 likes · 6 min read

This article surveys typical Python traps—including UnboundLocalError, mutable default arguments, in‑place versus out‑of‑place updates, tuple syntax, shared mutable containers, list mutation during iteration, closure late binding, __del__ pitfalls, import inconsistencies, version differences, operator quirks, attribute magic methods, and the GIL—explaining why they occur and offering safe alternatives.
GILPythonattribute-access
0 likes · 12 min read

This article explains why Python's OS‑level threads can be slower for CPU‑bound tasks due to the Global Interpreter Lock, describes race conditions caused by reference counting, and shows how using threading locks (including context‑manager syntax) ensures correct concurrent execution.
ConcurrencyGILLock
0 likes · 6 min read

This tutorial explains Python's multithreading model, its advantages and limitations—including the Global Interpreter Lock—demonstrates thread creation with the threading module, shows race conditions and lock usage, compares processes and threads, and discusses when to choose threads, processes, or asynchronous I/O for different workloads.
GILLockMultithreading
0 likes · 17 min read

This article explains how Python handles concurrency by comparing processes and threads, describing the Global Interpreter Lock, and detailing the threading, thread, and queue modules along with their synchronization primitives and practical usage patterns.
ConcurrencyGILMultithreading
0 likes · 18 min read

This article explores the origins, design trade‑offs, and performance impact of Python’s Global Interpreter Lock (GIL), explains why it persists in CPython, reviews past attempts to remove it, and offers practical guidance for developers seeking effective concurrency solutions.
CPythonConcurrencyGIL
0 likes · 12 min read

This article explores the origins, challenges, and ongoing research surrounding Python's Global Interpreter Lock (GIL), explaining why it limits multithreaded performance, how it has evolved, and what alternatives developers can consider for true parallel execution.
CPythonConcurrencyGIL
0 likes · 13 min read

This article explains the differences between processes and threads, the role of Python's Global Interpreter Lock, how to create and manage threads with the thread and threading modules, and how to use synchronization primitives and the Queue module for producer‑consumer patterns.
GILLockQueue
0 likes · 19 min read

This article explains the fundamentals of Python concurrency, covering the differences between processes and threads, the role of the Global Interpreter Lock (GIL), how to use the low‑level thread module and the high‑level threading module, synchronization primitives such as Lock, RLock, Event, Condition, and the Queue module for producer‑consumer patterns.
ConcurrencyGILMultithreading
0 likes · 19 min read

This article explains Python's threading support, covering the thread and threading modules, ways to create threads, join and daemon settings, synchronization primitives, queue-based communication, thread pool usage and custom implementation, and the impact of the Global Interpreter Lock.
ConcurrencyGILPython
0 likes · 6 min read

The article explains why CPython often runs slower than compiled or JIT‑enabled languages by examining the Global Interpreter Lock, the interpreted nature of Python, its dynamic typing, alternative runtimes, and practical optimisation techniques for improving performance.
GILInterpretationJIT
0 likes · 11 min read

The article recounts a four‑year investigation that uncovered and repaired a subtle race‑condition bug in Python's Global Interpreter Lock, detailing the bug's origin, the implemented fixes, performance testing, and the decision to make the GIL creation unconditional in Python 3.7.
CPythonGILPython
0 likes · 10 min read

This article shares Alibaba's Python engineer job requirements, detailed interview questions covering list operations, word frequency, GIL, multithreading, design patterns, and common Python concepts, along with concise answers to help candidates prepare effectively.
AlibabaCoding QuestionsGIL
0 likes · 10 min read

The article explores the history, design challenges, and performance impact of Python's Global Interpreter Lock (GIL), explaining why it persists, how it limits multithreaded execution, and what recent changes and research reveal about possible alternatives.
CPythonConcurrencyGIL
0 likes · 12 min read

The article explores Python’s Global Interpreter Lock (GIL), explaining its origins, how it limits true multithreading, the challenges of removing it, historical attempts, recent improvements, and why developers often prefer multiprocessing over threading for parallel execution.
CPythonConcurrencyGIL
0 likes · 13 min read

This article introduces Python multithreading by comparing processes and threads, explains the Global Interpreter Lock, and details the thread and threading modules along with synchronization primitives, queue usage, and common FAQs for effective concurrent programming.
GILMultithreadingSynchronization
0 likes · 18 min read

This article explains the differences between Ruby threads and processes, when to use each for performance gains, illustrates practical scenarios, and provides code examples for simple multithreading, multiprocessing, and using the Parallel gem.
ConcurrencyGILMultithreading
0 likes · 11 min read


ITPUBApr 6, 2016 · Fundamentals
This article explains the purpose of Python’s Global Interpreter Lock, how it limits multithreaded performance on multi‑core CPUs, distinguishes CPU‑bound versus I/O‑bound scenarios, and shows why multiprocessing is usually the preferred solution for parallel execution.
ConcurrencyGILMultithreading
0 likes · 6 min read
