roam/20210323012431-concurrent_and_parallel_programming.org
2021-07-29 18:51:25 -04:00

664 B

Concurrent and Parallel Programming

From Joe Armstrong's blog:

What's the difference between concurrency and parallelism?

Explain it to a five year old.

/correlr/roam/media/commit/c85173a02256ed30aaa39913ae02701f14614fff/data/fb/2246e7-e0a7-455b-a030-1bd4dfda4ce3/con_and_par.jpeg

Concurrent
Two queues and one coffee machine.
Parallel
Two queues and two coffee machines.