JMM中的执行定义

时间:2014-09-22 10:55:25

标签: java java-memory-model

执行E由元组< P,A,po,so,W,V,sw,hb>,包括:

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

有什么行动?这个定义是否与特定线程t有关?或者一个涵盖程序启动的所有线程?

1 个答案:

答案 0 :(得分:2)

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