计算机科学 > 计算机科学中的逻辑
[提交于 2013年4月10日]
标题:Inferring Fences in a Concurrent Program Using SC proof of Correctness
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Most proof systems for concurrent programs assume the underlying memory model to be sequentially consistent (SC), an assumption which does not hold for modern multicore processors. These processors, for performance reasons, implement relaxed memory models. As a result of this relaxation a program, proved correct on the SC memory model, might execute incorrectly. To ensure its correctness under relaxation, fence instructions are inserted in the code. In this paper we show that the SC proof of correctness of an algorithm, carried out in the proof system of [Sou84], identifies per-thread instruction orderings sufficient for this SC proof. Further, to correctly execute this algorithm on an underlying relaxed memory model it is sufficient to respect only these orderings by inserting fence instructions.
提交历史
来自:Chinmay Narayan[v1] 2013年4月10日 星期三 12:34:37 UTC