arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1211.6315cs.DCcs.DS
收藏

事务存储器的非干扰性和局部正确性

Non-Interference and Local Correctness in Transactional Memory

Petr Kuznetsov, Sathya Peri

摘要:

事务内存允许用户在原子事务中使用全有或全无的语义来组装动作序列,从而使并发编程变得易于处理和高效。据信,事务内存必须确保所有提交的事务都构成遵守实时顺序的串行执行。相反,中止或未完成的交易不应“生效”。“但“不起作用”到底是什么意思?这似乎是自然的期望,中止或不完整的事务不会出现在全局串行执行中,因此,没有提交的事务可以受到它们的影响。我们研究了另一个不太明显的“不生效”特性,称为非干扰:已中止或未完成的事务不应强制任何其他事务中止。在本文中我们探讨的最强形式的不干扰中,通过从历史中删除一个被中止或不完整事务的子集,我们不应该能够在不违反正确性标准的情况下将被中止的事务转换为已提交的事务。我们表明,非干扰是,在严格意义上说,不可实现的流行标准的不透明性,需要所有的交易(无论是他们提交,中止或不完整)见证相同的全球串行执行。相反,当我们只要求局部正确性时,不干涉是可以实现的。非正式地,如果正确性标准仅要求每个事务可以与在其最后一个事件(被中止或未完成的事务被忽略)之前提交的事务(的子集)一起被序列化,则该正确性标准是局部的。我们给出了几个例子的本地正确性属性,包括最近提出的虚拟世界的一致性标准,并提出了一个简单而有效的实现,满足非干扰和本地不透明。

英文摘要:

Transactional memory promises to make concurrent programming tractable and efficient by allowing the user to assemble sequences of actions in atomic transactions with all-or-nothing semantics. It is believed that, by its very virtue, transactional memory must ensure that all committed transactions constitute a serial execution respecting the real-time order. In contrast, aborted or incomplete transactions should not "take effect." But what does "not taking effect" mean exactly? It seems natural to expect that aborted or incomplete transactions do not appear in the global serial execution, and, thus, no committed transaction can be affected by them. We investigate another, less obvious, feature of "not taking effect" called non-interference: aborted or incomplete transactions should not force any other transaction to abort. In the strongest form of non-interference that we explore in this paper, by removing a subset of aborted or incomplete transactions from the history, we should not be able to turn an aborted transaction into a committed one without violating the correctness criterion. We show that non-interference is, in a strict sense, not implementable with respect to the popular criterion of opacity that requires all transactions (be they committed, aborted or incomplete) to witness the same global serial execution. In contrast, when we only require local correctness, non-interference is implementable. Informally, a correctness criterion is local if it only requires that every transaction can be serialized along with (a subset of) the transactions committed before its last event (aborted or incomplete transactions ignored). We give a few examples of local correctness properties, including the recently proposed criterion of virtual world consistency, and present a simple though efficient implementation that satisfies non-interference and local opacity.

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

↑