Concurrency vs parallelism.
One barista juggling many orders by switching between them, versus several baristas making drinks at the same instant.
- Three orders, one of me.1
Concurrency is one barista with many orders — dealing with all of them at once.
- Brew that, froth this, back again.2
She starts one, steams milk for another while the first brews, switches between them fast.
- 3
Nothing happens at the same instant, yet everything keeps moving. That’s structure, not speed.
- On three — both pour!4
Parallelism is two baristas each pouring a drink at the very same moment.
- 5
That needs more hands. Add cores and CPU-heavy work genuinely finishes faster.
- You structure it; I’ll parallelise it.6
They combine: write concurrent tasks, and the runtime spreads them across cores for you.
Semicolony semicolony.dev/eli5/concurrency-vs-parallelism/comic