Is CPython Faster Without the Global Interpreter Lock(GIL)?
The Global interpreter lock(GIL) is a mechanism in CPython implementation to ensure only one thread is running at a time. This means that even if we use threads to try to speed up our programs’ runtime, this will not work because, in the end, the interpreter will block that two or more threads will be executed in parallel.
As the name suggests, the GIL is a locker that a thread gets when it starts and releases at some moment.
[Read More]