...
【24h】

Relaxed Memory Models: an Operational Approach

机译:宽松的记忆模型:一种操作方法

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

Memory models define an interface between programs written insome language and their implementation, determining which be-haviour the memory (and thus a program) is allowed to have ina given model. A minimal guarantee memory models should pro-vide to the programmer is that well-synchronized, that is, data-racefree code has a standard semantics. Traditionally, memory mod-els are defined axiomatically, setting constraints on the order inwhich memory operations are allowed to occur, and the program-ming language semantics is implicit as determining some of theseconstraints. In this work we propose a new approach to formalizinga memory model in which the model itself is part of a weak op-erational semantics for a (possibly concurrent) programming lan-guage. We formalize in this way a model that allows write opera-tions to the store to be buffered. This enables us to derive the or-dering constraints from the weak semantics of programs, and toprove, at the programming language level, that the weak semanticsimplements the usual interleaving semantics for data-race free pro-grams, hence in particular that it implements the usual semanticsfor sequential code.
机译:内存模型定义了用某种语言编写的程序及其实现之间的接口,确定了在给定模型中允许内存(以及程序)具有哪种行为。程序员应该提供的最小保证内存模型是同步良好,也就是说,数据竞争代码具有标准的语义。传统上,内存模块是按照公理的方式定义的,在允许内存操作发生的顺序上设置约束,而编程语言的语义在确定其中一些约束时是隐含的。在这项工作中,我们提出了一种形式化内存模型的新方法,其中该模型本身是(可能是并发的)编程语言的弱操作语义的一部分。我们以这种方式形式化了一个模型,该模型允许对存储的写操作进行缓冲。这使我们能够从程序的弱语义中推导出阶约束,并在编程语言级别上证明弱语义为无数据竞争程序实现了通常的交织语义,因此特别是它实现了顺序代码的常用语义。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号