Domains: Sharing State in the Communicating Event-Loop Actor Model - Archive ouverte HAL Accéder directement au contenu
Article Dans Une Revue Computer Languages, Systems and Structures Année : 2016

Domains: Sharing State in the Communicating Event-Loop Actor Model

Résumé

The actor model is a message-passing concurrency model that avoids deadlocks and low-level data races by construction. This facilitates concurrent programming, especially in the context of complex interactive applications where modularity, security and fault-tolerance are required. The tradeoff is that the actor model sacrifices expressiveness and safety guarantees with respect to parallel access to shared state. In this paper we present domains as a set of novel language abstractions for safely encapsulating and sharing state within the actor model. We introduce four types of domains, namely immutable, isolated, observable and shared domains that each are tailored to a certain access pattern on that shared state. The domains are characterized with an operational semantics. For each we discuss how the actor model's safety guarantees are upheld even in the presence of conceptually shared state. Furthermore, the proposed language abstractions are evaluated with a case study in Scala comparing them to other synchonisation mechanisms to demonstrate their benefits in deadlock freedom, parallel reads, and enforced isolation.
Fichier principal
Vignette du fichier
comlan-de-koster-et-al-domains-sharing-state-in-the-communicating-event-loop-actor-model.pdf (588.71 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01273665 , version 1 (12-02-2016)

Licence

Copyright (Tous droits réservés)

Identifiants

Citer

Joeri de Koster, Stefan Marr, Tom van Cutsem, Theo D 'Hondt. Domains: Sharing State in the Communicating Event-Loop Actor Model. Computer Languages, Systems and Structures, 2016, ⟨10.1016/j.cl.2016.01.003⟩. ⟨hal-01273665⟩
271 Consultations
173 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More