arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1602.03594cs.PLcs.DC
收藏

可逆的沟通过程

Reversible Communicating Processes

Geoffrey Brown, Amr Sabry

摘要:

可逆分布式程序具有中止非生产性计算路径和回溯的能力,同时展开发生在中止路径中的通信。虽然人们很自然地认为可逆性意味着完整的状态恢复(与传统的回滚恢复协议一样),但一个有趣的替代方案是将回溯与本地状态恢复分开。例如,这样的模型可以用于从嵌套的可补偿事务中创建复杂的事务,其中程序员提供的补偿定义了“展开”事务所需的工作。可逆的分布式计算在理论上得到了相当多的关注,但很少减少到实践中;支持可逆性的语言的少数公开实现依赖于高度的中央控制。本文的目的是证明一个实用的可逆分布式语言可以有效地实现在一个完全分布式的方式。我们讨论这样一种语言,支持CSP风格的同步通信,嵌入在Scala中。虽然这种语言提供了本文中所描述的工作的动机,我们的重点是分布式实现。特别是,我们证明了一个“高层次”的语义模型可以使用一个简单的点对点协议来实现。

英文摘要:

Reversible distributed programs have the ability to abort unproductive computation paths and backtrack, while unwinding communication that occurred in the aborted paths. While it is natural to assume that reversibility implies full state recovery (as with traditional roll-back recovery protocols), an interesting alternative is to separate backtracking from local state recovery. For example, such a model could be used to create complex transactions out of nested compensable transactions where a programmer-supplied compensation defines the work required to "unwind" a transaction. Reversible distributed computing has received considerable theoretical attention, but little reduction to practice; the few published implementations of languages supporting reversibility depend upon a high degree of central control. The objective of this paper is to demonstrate that a practical reversible distributed language can be efficiently implemented in a fully distributed manner. We discuss such a language, supporting CSP-style synchronous communication, embedded in Scala. While this language provided the motivation for the work described in this paper, our focus is upon the distributed implementation. In particular, we demonstrate that a "high-level" semantic model can be implemented using a simple point-to-point protocol.

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

↑