Concurrency vs Parallelism
Concurrency is dealing with many tasks at once; parallelism is doing many at the same instant.
Intermediate
| Workload | Best tool |
|---|---|
| Many slow network/file waits | asyncio or threads |
| Heavy computation | processes, NumPy/Numba, or C extensions |
| Mixed | async + a process pool for the heavy parts |
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.