← All resources

πŸ”€ Interleaving Lab β€” concurrency non-determinism

Run concurrent threads over shared variables and see every possible interleaving, how many there are, and how many distinct outputs result β€” the heart of race conditions. Each line in a thread is one atomic statement.
Presets:
Possible interleavings
–
Distinct outputs
–

Outcomes

Trace one interleaving