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/d28ce1411143f8a8d664a19676644cfe825dd467/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.