What's it called when multiple threads execute at the same time? Parallelism? Concurrency? 🤔 Is there a difference? (Spoiler: Yes!) Let me explain in a few tweets, ripping off @pressron's #InsideJava blog post "On Parallelism and Concurrency". 🧵 inside.java/2021/11/30/on-…
5
50
177
0
65
Parallelism: Taking a task and splitting it up, so multiple CPUs can compute partial solutions in parallel to solve the task in less wall-clock time. Concurrency: Having a number of tasks that need to be arranged in a way that solves as many of them per $time_unit as possible.