Python menawarkan tiga model konkurensi, dan memilih dengan tepat terutama bergantung pada apakah pekerjaan Anda I/O-bound atau CPU-bound — keputusan yang sangat dipengaruhi oleh GIL (yang mencegah thread menjalankan kode Python secara paralel).
Tiga model
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.
