【24h】

Synchronization Views for Event-loop Actors

机译:事件循环参与者的同步视图

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

摘要

The actor model has already proven itself as an interesting concur-rency model that avoids issues such as deadlocks and race condi-tions by construction, and thus facilitates concurrent programming. The tradeoff is that it sacrifices expressiveness and efficiency es-pecially with respect to data parallelism. However, many standard solutions to computationally expensive problems employ data par-allel algorithms for better performance on parallel systems. We identified three problems that inhibit the use of data-parallel algorithms within the actor model. Firstly, one of the main prop-erties of the actor model, the fact that no data is shared, is one of the most severe performance bottlenecks. Especially the fact that shared state can not be read truly in parallel. Secondly, the actor model on its own does not provide a mechanism to specify extra synchronization conditions on batches of messages which leads to event-level data-races. And lastly, programmers are forced to write code in a continuation-passing style (CPS) to handle typical request-response situations. However, CPS breaks the sequential flow of the code and is often hard to understand, which increases complexity and lowers maintainability. We proposes synchronization views to solve these three is-sues without compromising the semantic properties of the actor model. Thus, the resulting concurrency model maintains deadlock-freedom, avoids low-level race conditions, and keeps the semantics of macro-step execution.
机译:参与者模型已经证明自己是一个有趣的并发模型,该模型避免了因构造而导致的死锁和竞争条件等问题,从而简化了并发编程。折衷是它牺牲了表达性和效率,尤其是在数据并行性方面。但是,许多解决计算量昂贵问题的标准解决方案都采用数据并行算法,以在并行系统上实现更好的性能。我们确定了三个问题,这些问题阻碍了参与者模型中数据并行算法的使用。首先,参与者模型的主要属性之一,即没有数据共享是最严重的性能瓶颈之一。特别是共享状态无法真正并行读取的事实。其次,参与者模型本身没有提供一种机制来为成批的消息指定额外的同步条件,从而导致事件级数据争用。最后,程序员被迫以连续传递样式(CPS)编写代码以处理典型的请求-响应情况。但是,CPS破坏了代码的顺序流,并且通常很难理解,这增加了复杂性并降低了可维护性。我们提出了同步视图来解决这三个问题,同时又不影响参与者模型的语义特性。因此,最终的并发模型保持了无死锁,避免了低级竞争条件并保留了宏步骤执行的语义。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号