2 Serial and parallel execution

In this chapter:

  • You learn the terminology to talk about a running program
  • You learn different approaches at the lowest layer of concurrency: physical task execution
  • You draft your first parallel program
  • You learn the limitations of the parallel computing approach

For thousands of years (well, not quite, but for a long time), developers have been writing programs using the simplest model of computation: the sequential model. The serial execution approach is at the core of sequential programming, and this is our starting point in our introduction to concurrency. In this chapter, I introduce different execution approaches that lie at the low-level execution layer.

Review: What is a program?

The first problem with ...

Get Grokking Concurrency now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.