Python multi-thread ,multiprocessing, GIL
In CPython, the global interpreter lock, or GIL, is a mutex that protects access to Python objects, preventing multiple threads from executing Python bytecodes at once. The GIL prevents race conditions and ensures thread safety.
In short ,Python global intepreter lock will try prevent multiple thread from executing at same time to ensure thread safe . Lets see how it impact multi-threaded processing .