# race condition (concurrency)

An error where two processes access the same thing at about the same time, so the outcome changes with which one happens first, an order that is not certain.

- Computed level: L11 (depth in the emergence graph, not abstraction)
- Status: review  ·  Domain: computing

## Emergence
**Emerges from:** [process](https://emergencemachine.com/tools/lexicon/what-is-the-meaning-of-process.general), [access](https://emergencemachine.com/tools/lexicon/what-is-the-meaning-of-access.entry), [order](https://emergencemachine.com/tools/lexicon/what-is-the-meaning-of-order.arrangement), [time](https://emergencemachine.com/tools/lexicon/what-is-the-meaning-of-time.dimension), [uncertainty](https://emergencemachine.com/tools/lexicon/what-is-the-meaning-of-uncertainty.epistemic), [error](https://emergencemachine.com/tools/lexicon/what-is-the-meaning-of-error.mistake)

**Through:** Two processes running at the same time both access one shared state, and because nothing fixes the order of their steps, the final outcome depends on which one happens to get there first.

**Novel properties:**
- outcome depends on timing rather than logic
- failure that appears only sometimes
- hard to reproduce or test

---
*Canonical: https://emergencemachine.com/tools/lexicon/what-is-the-meaning-of-race-condition.concurrency*  
*Structured data: https://emergencemachine.com/tools/lexicon/what-is-the-meaning-of-race-condition.concurrency.json*  
*Every definition provably resolves to space, time, energy and pattern.*