Threads can provide concurrency, even if they're not truly parallel. In my last article, I took a short tour through the ways you can add concurrency to your programs. In this article, I focus on one ...
Did you know that spawning CPU-heavy tasks can improve you system I/O performance? Well, kinda. Do not suggest it to your tech-lead though :) Inspired by David Beazley's talks about GIL, Global ...
Python's "multiprocessing" module feels like threads, but actually launches processes. Many people, when they start to work with Python, are excited to hear that the language supports threading. And, ...
In today’s world of scalable systems and responsive applications, concurrency plays a vital role in how we write efficient software. Whether you're building a web server, processing large datasets, or ...
The removal of the Global Interpreter Lock (GIL) in CPython 3.14 enables true thread-level parallelism for CPU-bound Python code. Multiple approaches can exploit this: imperative shared-state code ...