Learn Before
Concept
Global Interpreter Lock (GIL)
In Cpython, the global interpreter lock prevents multiple threads from executing python bytecode concurrently. This mechanism is implemented because it ensures that certain objects (such as a dictionary for example) cannot be concurrently accessed. There are some built-in and third-party libraries that release this lock in computationally expensive tasks like compression or hashing.
0
1
Updated 2021-08-12
Tags
Python Programming Language
Data Science