执行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
有关?或者一个涵盖程序启动的所有线程?
答案 0 :(得分:2)
在元组E
中,A
是执行程序P
时提交的所有线程间操作的集合。