Global Interpreter Lock (GIL)
Definitions are in Persian for now. Read in Persian
Articles with this concept
- Python

What Is the Python Global Interpreter Lock (GIL)?
The Python Global Interpreter Lock (GIL) is a mutex that allows only one thread to control the Python interpreter at a time, affecting multi-threaded and CPU-bound code performance. It was introduced to manage memory safely using reference counting, avoiding race conditions and deadlocks.