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.
