GIL (Global Interpreter Lock) CPython (मानक Python कार्यान्वयन) मा एक mutex हो जो केवल एक पल मा एक thread लाई Python bytecode कार्यन्वयन गर्न अनुमति दिन्छ। यसको मतलब Python threads एक साथ multiple CPU cores मा Python कोड साँच्चोको समानान्तरमा चलाउन सक्दैनन् — समकालिनताको लागि मुख्य विचार।
व्यावहारिकमा GIL को अर्थ
Even with multiple threads on a multi-core CPU:
Only ONE thread runs Python bytecode at any instant.
→ Threading does NOT give CPU-bound parallelism in CPython.
