Chapter 12: Multithreading and Asynchronous Programming
Since the very first personal computer, we have benefitted from the constant increase of CPU power—a phenomenon that heavily influenced developers' choices of tools, languages, and application design, while historically not putting much effort into programming to take advantage of multithreading.
On the hardware side, the prediction made by Moore's law that the density of the transistors in processors should double every 2 years, thus providing more computing power, worked for some decades, but we can already observe it slowing down. Even if the CPU manufacturers started producing multi-core CPUs roughly 20 years ago, the ability to execute code concurrently was primarily used by the operating systems (OSes) to make executing multiple processes smoother.
This doesn't mean that code was unable to leverage the power of concurrency, but just that only a small quantity of applications fully embraced the...