作者
Lindsey Kuper, Aaron Turon, Neelakantan R Krishnaswami, Ryan R Newton
发表日期
2014/1/8
期刊
ACM SIGPLAN Notices
卷号
49
期号
1
页码范围
257-270
出版商
ACM
简介
Deterministic-by-construction parallel programming models offer the advantages of parallel speedup while avoiding the nondeterministic, hard-to-reproduce bugs that plague fully concurrent code. A principled approach to deterministic-by-construction parallel programming with shared state is offered by LVars: shared memory locations whose semantics are defined in terms of an application-specific lattice. Writes to an LVar take the least upper bound of the old and new values with respect to the lattice, while reads from an LVar can observe only that its contents have crossed a specified threshold in the lattice. Although it guarantees determinism, this interface is quite limited.
We extend LVars in two ways. First, we add the ability to "freeze" and then read the contents of an LVar directly. Second, we add the ability to attach event handlers to an LVar, triggering a callback when the LVar's value changes. Together …
引用总数
201320142015201620172018201920202021202220232024110109910463712
学术搜索中的文章