Concurrency vs. Parallelism

Posted on April 20, 2016 Updated on April 20, 2016

Quoted from Go Concurrency Patterns.



What is Concurrency

Programming as the composition of independently executing processes.

What is Parallelism

Programming as the simultaneous execution of (possibly related) computations.

Concurrency vs. Parallelism

Concurrency is about dealing with lots of things at once.

Parallelism is about doing lots of things at once.

One is about structure, one is about execution.

Concurrency provides a way to structure a solution to solve a problem that may (but not necessarily) be parallelizable.