Python ले तीनवटा concurrency मडेलहरू प्रदान गर्छ, र सही विकल्प मुख्यतः यस बात मा निर्भर गर्छ कि तपाईंको काम I/O-bound हो वा CPU-bound — GIL द्वारा भारी रूपमा आकार दिइएको निर्णय (जो थ्रेडहरूलाई Python कोड समानान्तरमा चलाउन रोक्छ)।
तीन मडेलहरू
threading → multiple threads, ONE process. GIL-limited for CPU.
multiprocessing → multiple PROCESSES, each its own interpreter/GIL → true parallelism.
asyncio → single thread, cooperative coroutines yielding at await points.
