Python มีโมเดลการทำงานพร้อมกัน (concurrency) สามแบบ และการเลือกให้ถูกต้องขึ้นอยู่กับว่างานของคุณเป็น I/O-bound หรือ CPU-bound เป็นหลัก — การตัดสินใจที่ได้รับอิทธิพลอย่างมากจาก GIL (ซึ่งป้องกันไม่ให้ thread รันโค้ด 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.
