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/9e497a539814aa500198a9fa4a2d6dc8c4e3120a/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.