Why concurrency is necessary
In olden days, computers had only one CPU, each much slower than any CPU today, and this made concurrency very limited. Hardware manufacturers successfully found ways to make CPUs faster, and this made single-threaded programs faster and the time-sharing of CPU more productive. But eventually, this had a diminishing return, and manufacturers found they could increase computational power by putting multiple CPUs in a device. From desktops and laptops to servers and smartphones, most hardware nowadays sports multiple CPUs, or cores.
For developers, this is a major disruption in building software and how coding is done. Single-threaded software is easier to code. It works fine on a single-core device, but a single-threaded ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access