Stay Curious!

The difference between concurrency and parallelism

This confuses lots of people, including most recently Todd Hoff of HighScalability fame, who wrote in last week’s summary post,

Have to say, this distinction has never made sense to me: Concurrency is not parallelism: concurrency is the composition of independently executing processes, while parallelism is the simultaneous execution of (possibly related) computations. Concurrency is about dealing with lots of things at once. Parallelism is about doing lots of things at once. I think the problem is that words are hard to understand. The Go blog post is confusing because of that. Pictures are easier. Look, a single-threaded, non-parallel, concurrent process:

Lots of tasks can run on the system, but only one of them makes progress at a time. And here’s one that’s both concurrent and parallel:

Hopefully that clears things up.

Posted on Mon, Apr 29, 2013. Approximately 200 Words.

Programming