3 ms·
Fast execution context switching is great for concurrency. Concurrency is a way to express the control flow. It can be, and often is, achieved without any paral
by nine_k 8y ago
Fast execution context switching is great for concurrency. Concurrency is a way to express the control flow. It can be, and often is, achieved without any parallelism, with a strictly one-thing-at-a-time execution.
Parallelism is a way to have more than one execution context execute simultaneously. In a system with a GIL, it only makes sense for contexts mostly waiting for I/O. CPU-bound tasks are obviously sequenced and limited by GIL access, and no parallelism is possible.