Quiz

GIL, asyncio, Threads, and Processes

A deep dive into how the GIL shapes the trade-offs between asyncio, threading, and multiprocessing in CPython.

You have a CPython (3.11) workload mixing a CPU-bound NumPy matrix computation, many concurrent network requests, and calls into a C extension that releases the GIL during long syscalls. Which statement is the MOST accurate about choosing a concurrency model here?