Chapter 1Introducing Concurrency
Let’s forget about computers for a moment; I’m going to look out of my window and tell you what I see.
I see a woman taking a dog for a walk. I see a car trying to find a parking space. I see a plane flying overhead and a boat sailing by. All these things happen in parallel. In this book, we will learn how to describe parallel activities as sets of communicating parallel processes. We will learn how to write concurrent programs.
In everyday language, words like concurrent, simultaneous, and parallel mean almost the same thing. But in programming languages, we need to be more precise. In particular, we need to distinguish between concurrent and parallel programs.
If we have only a single-core computer, ...
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