Skip to content

Interleaving

Category: Foundations · Status: stub · Lessons: chapter 02, Shared state

One line: One of the many orders in which the steps of concurrent tasks can actually run; a concurrent program is correct only if it is correct under every one of them.

How it connects

flowchart LR
  n_interleaving["Interleaving"]
  n_race_condition["Race condition"]
  n_interleaving -->|can cause| n_race_condition
  classDef center stroke-width:3px
  class n_interleaving center
  classDef outside stroke-dasharray: 4 3
  class n_race_condition outside

Where to read more