Python तीन concurrency मॉडल प्रदान करता है, और सही विकल्प मुख्य रूप से इस बात पर निर्भर करता है कि आपका कार्य I/O-bound है या CPU-bound — एक निर्णय जो GIL (जो threads को 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.
