GIL - Global Interpreter Lock

GIL indruduces in python1.5 and is a C implementation. GIL not alow python programm to run on multiple cores.

Since 3.13 is optional and can be deactivated.

In short:

Python must be compiled with–disable-gil

Start python with -X gil=0 options

$ python3.13 -X gil=0
 >>> import sys; sys._is_gil_enabled()
 False

Multithreaded programs are than run on multiple CPU’s

See here https://docs.python.org/3/whatsnew/3.13.html for details.

refs: @arjancodes