---
spec: JLS
title: "The Java Language Specification"
edition: "Java SE 11 Edition"
java_version: 11
chapter: "Chapter 17. Threads and Locks"
section: "17.4.6"
heading: "17.4.6. Executions"
parent: "17.4. Memory Model"
source: https://docs.oracle.com/javase/specs/jls/se11/html/jls-17.html#jls-17.4.6
id: "17.4.6"
url: https://jvm.obfuscated.software/jls/se11/17.4.6.html
raw: https://jvm.obfuscated.software/jls/se11/17.4.6.md
---

# 17.4.6. Executions

An execution *E* is described by a tuple < *P, A, po, so, W, V, sw, hb* >, comprising:

- *P* - a program
- *A* - a set of actions
- *po* - program order, which for each thread *t*, is a total order over all actions performed by *t* in *A*
- *so* - synchronization order, which is a total order over all synchronization actions in *A*
- *W* - a write-seen function, which for each read *r* in *A*, gives *W(r)*, the write action seen by *r* in *E*.
- *V* - a value-written function, which for each write *w* in *A*, gives *V(w)*, the value written by *w* in *E*.
- *sw* - synchronizes-with, a partial order over synchronization actions
- *hb* - happens-before, a partial order over actions

Note that the synchronizes-with and happens-before elements are uniquely determined by the other components of an execution and the rules for well-formed executions ([§17.4.7](17.4.7.md)).

An execution is *happens-before consistent* if its set of actions is *happens-before consistent* ([§17.4.5](17.4.5.md)).
