We model actors based on truly concurrent process algebra, and capture the actor model in the following characteristics: (1) Concurrency: all actors execute concurrently; (2) Asynchrony: an actor receives and sends messages asynchronously; (3) Uniqueness: an actor has a unique name and the associate unique mail box name; (4) Concentration: an actor focuses on the processing messages, including some local computations, creations of some new actors, and sending some messages to other actors; (5) Communication Dependency: the only way of affecting an actor is sending a message to it; (6) Abstraction: except for the receiving and sending message, and creating new actors, the local computations are abstracted; (7) Persistence: an actor does not disappear after processing a message. Truly concurrent process algebra has rich expressive ability to model the above characteristics of actors, and more importantly, they are models for true concurrency, Comparing with other models of actors, the truly concurrent process algebra based model has the following advantages: (1) The truly concurrent process algebra has rich expressive abilities to describe almost all characteristics of actors, especially for asynchronous communication, actor creation, recursion, abstraction, etc; (2) The truly concurrent process algebra and actors are all models for true concurrency, and have inborn intimacy; (3) The truly concurrent process algebra has a firm semantics foundation and a powerful proof theory, the correctness of an actor system can be proven easily.
翻译:我们以真正同时的流程代数来模拟行为体,并以下列特点来捕捉行为体模式:(1) 货币:所有行为体同时执行;(2) 同步:一个行为体接收和发送信息时不同步;(3) 独特性:行为体有一个独特的名称,其关联的独特邮件箱名称;(4) 集中性:行为体注重处理信息,包括一些本地计算,创建一些新行为体,并将一些信息发送给其他行为体;(5) 沟通依赖性:影响行为体的唯一方式是向其传递信息;(6) 抽象性:除了接收和发送信息以及创建新的行为体之外,当地计算是抽象的;(7) 持久性:行为体在处理信息后不会消失。真正同时的变数进程具有丰富的表达能力,可以模拟行为体的上述特征,包括某些本地计算,创建一些新行为体,并将一些信息发送到其他行为体;(5) 通信的模型与其他行为体的模型兼容性,真正同时的变数模型具有以下优势:(1) 真正同时的变数进程是:除了接收和发送信息之外,真实的变数的变数计算能力是描述行为者的几乎所有的特性,特别是对于正数的变数的变数性、正数式通信中的变数;在正数式通信中,具有真正的变数的变数的变数过程。