The GIL
Python has a global lock that has to be accessed by the current running thread as the interpreter is not fully thread safe. This is called the GIL or Global Interpreter Lock.
Since Python 3.13, the core developers of Python have been working on a free-thread implementation …