timerring

CPU can only see the threads

January 23, 2025 · 12 min read · Page View:
Tutorial
Multiple Threads | Multiple Processes | Coroutine | Python

In python, due to the GIL (Global Interpreter Lock), which is a mutex and ensures only one thread can execute at a time, so the multiple threads parallel execution is not supported under the CPython interpreter. But what about the multiple processes? What is the difference between them? How to choose the right method? Do you know the coroutine? Let’s explore it together.

...