首页> 外文会议>Asian symposium on programming languages and systems >Observation-Based Concurrent Program Logic for Relaxed Memory Consistency Models
【24h】

Observation-Based Concurrent Program Logic for Relaxed Memory Consistency Models

机译:松弛内存一致性模型的基于观察的并发程序逻辑

获取原文

摘要

Concurrent program logics are frameworks for constructing proofs, which ensure that concurrent programs work correctly. However, most conventional concurrent program logics do not consider the complexities of modern memory structures, and the proofs in the logics do not ensure that programs will work correctly. To the best of our knowledge, Independent Reads Independent Writes (IRIW), which is known to have non-intuitive behavior under relaxed memory consistency models, has not been fully studied under the context of concurrent program logics. One reason is the gap between theoretical memory consistency models that program logics can handle and the realistic memory consistency models adopted by actual computer architectures. In this paper, we propose observation variables and invariants that fill this gap, releasing us from the need to construct operational semantics and logic for each specific memory consistency model. We describe general operational semantics for relaxed memory consistency models, define concurrent program logic sound to the operational semantics, show that observation invariants can be formalized as axioms of the logic, and verify IRIW under an observation invariant. We also obtain a novel insight through constructing the logic. To define logic that is sound to the operational semantics, we dismiss shared variables in programs from assertion languages, and adopt variables observed by threads. This suggests that the so-called bird's-eye view of the whole computing system disturbs the soundness of the logic.
机译:并发程序逻辑是用于构造证明的框架,可确保并发程序正常工作。但是,大多数常规的并发程序逻辑都没有考虑现代内存结构的复杂性,并且逻辑中的证明不能确保程序能够正确运行。就我们所知,独立读取独立写入(IRIW)在宽松的内存一致性模型下具有非直觉的行为,但尚未在并发程序逻辑的上下文中进行充分研究。原因之一是程序逻辑可以处理的理论内存一致性模型与实际计算机体系结构采用的实际内存一致性模型之间存在差距。在本文中,我们提出了填补这一空白的观察变量和不变量,使我们无需为每个特定的内存一致性模型构造操作语义和逻辑。我们描述了宽松内存一致性模型的一般操作语义,为操作语义定义了并发程序逻辑声音,表明可以将观察不变量形式化为逻辑公理,并在观察不变量下验证IRIW。通过构造逻辑,我们还获得了新颖的见解。为了定义对操作语义合理的逻辑,我们从断言语言中消除程序中的共享变量,并采用线程观察到的变量。这表明整个计算系统的所谓鸟瞰图会扰乱逻辑的可靠性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号