基于轻量级消息传递的事件同步
Event Synchronization by Lightweight Message Passing
摘要:
并发ML的事件和事件组合子促进了具有一流同步抽象的模块化并发编程。这些抽象的标准实现依赖于底层语言中对第一类延续的相当复杂的操作。在本文中,我们提出了一个轻量级的实现这些抽象的并发Haskell,一种语言,已经提供了一阶消息传递。我们实现的核心是一个新的分布式同步协议。与以前的几个翻译并发语言的事件抽象相比,我们仍然忠实于事件和事件组合子的标准语义,例如,我们保留了对称性的$\mathtt{choose}$表达选择性通信。
英文摘要:
Concurrent ML's events and event combinators facilitate modular concurrent programming with first-class synchronization abstractions. A standard implementation of these abstractions relies on fairly complex manipulations of first-class continuations in the underlying language. In this paper, we present a lightweight implementation of these abstractions in Concurrent Haskell, a language that already provides first-order message passing. At the heart of our implementation is a new distributed synchronization protocol. In contrast with several previous translations of event abstractions in concurrent languages, we remain faithful to the standard semantics for events and event combinators; for example, we retain the symmetry of $\mathtt{choose}$ for expressing selective communication.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。