arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1206.1687cs.PL
收藏

Actor系统的行为类型

Behavioural Types for Actor Systems

Silvia Crafa

摘要:

最近的主流程序设计语言(如Erlang或Scala)重新引起了对并发Actor模型的兴趣。然而,对角色系统进行静态分析的文献还缺乏成熟的形式化方法。在本文中,我们提出了一个最小的演员演算,作为原始的Scala的演员API的基本结构。更准确地说,参与者可以发送异步消息,根据模式匹配机制处理接收到的消息,并动态创建新的参与者,可以通过将参与者名称作为消息参数传递来扩展新参与者的作用域。从针对过程演算开发的线性类型和会话类型论中汲取灵感,我们提出了一个行为类型系统,解决了参与者演算的关键问题。然后,我们研究了有限行动者通信的确定性处理的安全性质。更准确地说,我们表明,良好的类型和平衡的演员系统是(i)无死锁和(ii)任何消息最终将由目标演员处理,双重没有演员将无限期地等待预期的消息

英文摘要:

Recent mainstream programming languages such as Erlang or Scala have renewed the interest on the Actor model of concurrency. However, the literature on the static analysis of actor systems is still lacking of mature formal methods. In this paper we present a minimal actor calculus that takes as primitive the basic constructs of Scala's Actors API. More precisely, actors can send asynchronous messages, process received messages according to a pattern matching mechanism, and dynamically create new actors, whose scope can be extruded by passing actor names as message parameters. Drawing inspiration from the linear types and session type theories developed for process calculi, we put forward a behavioural type system that addresses the key issues of an actor calculus. We then study a safety property dealing with the determinism of finite actor com- munication. More precisely, we show that well typed and balanced actor systems are (i) deadlock-free and (ii) any message will eventually be handled by the target actor, and dually no actor will indefinitely wait for an expected message

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

↑