arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2101.09527cs.DC
收藏

内存一致性模型的形式化定义

Formal Definitions of Memory Consistency Models

Jordi Bataller Mascarell

摘要:

共享内存是一种机制,它允许多个进程通过访问(写入或读取)它们共有的一组变量来相互通信。一致性模型定义了每个进程如何根据它和系统中其余进程执行的访问来观察存储器的状态。因此,它决定了当一个给定的进程发出读操作时,读操作返回什么值。这意味着在所有的进程之间,或者在不同子集的进程之间,必须对所有或一个子集的访问发生的顺序达成一致。很明显,参与协议的访问或处理的数量越多,协议的实现就越困难或缓慢。这是引入用于共享存储器的许多一致性模型的主要原因。本文是[2]和[3]的一个简单总结,其中正式定义了一致性模型(顺序,因果,PRAM,缓存,处理器,慢),包括同步模型(弱,释放,进入)。这提供了对这些模型的更好的理解,以及通过简洁的符号进行推理和比较的方法。在文献中有许多关于这个主题的论文,例如[11],这项工作与之共享一些概念。

英文摘要:

Shared Memory is a mechanism that allows several processes to communicate with each other by accessing -- writing or reading -- a set of variables that they have in common. A Consistency Model defines how each process observes the state of the Memory, according to the accesses performed by it and by the rest of the processes in the system. Therefore, it determines what value a read returns when a given process issues it. This implies that there must be an agreement among all, or among processes in different subsets, on the order in which all or a subset of the accesses happened. It is clear that a higher quantity of accesses or proceses taking part in the agreement makes it possibly harder or slower to be achieved. This is the main reason for which a number of Consistency Models for Shared Memory have been introduced. This paper is a handy summary of [2] and [3] where consistency models (Sequential, Causal, PRAM, Cache, Processors, Slow), including synchronized ones (Weak, Release, Entry), were formally defined. This provides a better understanding of those models and a way to reason and compare them through a concise notation. There are many papers on this subject in the literature such as [11] with which this work shares some concepts.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑