Java JMM中的执行定义

Java JMM中的执行定义,java,java-memory-model,Java,Java Memory Model,执行E由元组描述,包括: 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 writ

执行E由元组描述,包括:

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

这套行动是什么?该定义是否与特定线程相关?或者一个包含程序启动的所有线程?

在元组
E
中,
A
是程序执行所提交的所有线程间操作的集合
p