Python மூன்று concurrency models-ஐ வழங்குகிறது, மேலும் சரியாகத் தேர்வு செய்வது முக்கியமாக உங்கள் வேலை I/O-bound அல்லது CPU-bound என்பதைப் பொறுத்தது — இது GIL-ஆல் (இது threads-ஐ Python code-ஐ இணையாக இயக்க விடாமல் தடுக்கிறது) பெரிதும் வடிவமைக்கப்பட்ட ஒரு முடிவு.
மூன்று models
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.
