Understanding Python’s Global Interpreter Lock (GIL) – Real Python
The Python Global Interpreter Lock or GIL, in simple words, is a mutex (or a lock) that allows only one thread to hold the control of the Python interpreter. This means that only one thread can be in a state...