...
首页> 外文期刊>ACM SIGPLAN Notices: A Monthly Publication of the Special Interest Group on Programming Languages >Transaction Communicators: Enabling Cooperation Among Concurrent Transactions
【24h】

Transaction Communicators: Enabling Cooperation Among Concurrent Transactions

机译:交易沟通者:促进并发交易之间的合作

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

摘要

In this paper, we propose to extend transactional memory with transaction communicators, special objects through which concurrent transactions can communicate: changes by one transaction to a communicator can be seen by concurrent transactions before the first transaction commits. Although isolation of transactions is compromised by such communication, we constrain the effects of this compromise by tracking dependencies among transactions, and preventing any transaction from committing unless every transaction whose changes it saw also commits. In particular, mutually dependent transactions must commit or abort together, and transactions that do not communicate remain isolated. To help programmers synchronize accesses to communicators, we also provide special communicator-isolating transactions, which ensure isolation even for accesses to communicators. We propose language features to help programmers express the communicator constructs. We implemented a novel communicators-enabled STM runtime in the Maxine VM. Our preliminary evaluation demonstrates that communicators can be used in diverse settings to improve the performance of transactional programs, and to empower programmers with the ability to safely express within transactions important programming idioms that fundamentally require compromise of transaction isolation (e.g., CSP-style synchronous communication).
机译:在本文中,我们建议使用事务通信器扩展事务存储,事务通信器是通过特殊对象可以并发事务进行通信:在第一个事务提交之前,并发事务可以看到一个事务对通信器的更改。尽管通过这种通信损害了隔离事务的能力,但是我们通过跟踪事务之间的依赖关系并阻止提交任何事务,除非它看到的每个更改也都提交了,从而限制了此妥协的影响。特别是,相互依赖的事务必须一起提交或中止,并且不通信的事务保持隔离。为了帮助程序员同步对通信器的访问,我们还提供了特殊的通信器隔离事务,即使事务对通信器的访问也能确保隔离。我们提出了语言功能,以帮助程序员表达沟通者的构造。我们在Maxine VM中实现了一种启用了通信器的新型STM运行时。我们的初步评估表明,可以在多种环境中使用通信器,以提高事务处理程序的性能,并使程序员能够安全地在事务处理中表达重要的编程习惯,而这些习惯用法根本上需要妥善处理事务隔离(例如CSP风格的同步通信) )。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号