Concurrency vs. Parallelism - A Brief View: Madhavan Nagarajan
Concurrency vs. Parallelism - A Brief View: Madhavan Nagarajan
1 of 7 8/26/21, 4:27 PM
Concurrency vs. Parallelism — A brief view | by Madh... https://medium.com/@itIsMadhavan/concurrency-vs-par...
Concurrency
Concurrency means that an application is making progress on
more than one task at the same time (concurrently). Well, if the
computer only has one CPU the application may not make
progress on more than one task at exactly the same time, but
more than one task is being processed at a time inside the
2 of 7 8/26/21, 4:27 PM
Concurrency vs. Parallelism — A brief view | by Madh... https://medium.com/@itIsMadhavan/concurrency-vs-par...
3 of 7 8/26/21, 4:27 PM
Concurrency vs. Parallelism — A brief view | by Madh... https://medium.com/@itIsMadhavan/concurrency-vs-par...
Parallelism
Parallelism means that an application splits its tasks up into
smaller subtasks which can be processed in parallel, for
instance on multiple CPUs at the exact same time.
4 of 7 8/26/21, 4:27 PM
Concurrency vs. Parallelism — A brief view | by Madh... https://medium.com/@itIsMadhavan/concurrency-vs-par...
5 of 7 8/26/21, 4:27 PM
Concurrency vs. Parallelism — A brief view | by Madh... https://medium.com/@itIsMadhavan/concurrency-vs-par...
Summary
I recommend using the term “parallel” when the simultaneous
execution is assured or expected, and to use the term
“concurrent” when it is uncertain or irrelevant if simultaneous
execution will be employed.
6 of 7 8/26/21, 4:27 PM
Concurrency vs. Parallelism — A brief view | by Madh... https://medium.com/@itIsMadhavan/concurrency-vs-par...
7 of 7 8/26/21, 4:27 PM