Translating active objects into colored Petri nets for communication analysis

被引:2
作者
Gkolfi, Anastasia [1 ]
Din, Crystal Chang [1 ]
Johnsen, Einar Broch [1 ]
Kristensen, Lars Michael [2 ]
Steffen, Martin [1 ]
Yu, Ingrid Chieh [1 ]
机构
[1] Univ Oslo, Dept Informat, Oslo, Norway
[2] Hogskulen Vestlandet, Dept Comp Math & Phys, Bergen, Norway
关键词
Colored Petri nets; Model checking; Semantics; Static analysis; Concurrency; ACTORS;
D O I
10.1016/j.scico.2019.04.002
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Actor-based languages attract attention for their ability to scale to highly parallel architectures. Active objects combine the asynchronous communication of actors with object-oriented programming by means of asynchronous method calls and synchronization on futures. However, the combination of asynchronous calls and synchronization may introduce communication cycles which lead to a form of communication deadlock and livelock. This paper addresses such communication deadlocks and livelocks for ABS, a formally defined active object language which additionally supports cooperative scheduling to express complex distributed control flow, using first-class futures and explicit process release points. Our approach is based on a translation of the semantics of ABS into colored Petri nets, such that a program and its state correspond to a marking of this net. We prove the soundness of this translation and demonstrate by example how the implementation of this net can be used to analyze ABS programs with respect to communication deadlocks and livelocks. (C) 2019 Elsevier B.V. All rights reserved.
引用
收藏
页码:1 / 26
页数:26
相关论文
共 45 条
[1]  
Agha G., 1987, OBJECT ORIENTED CONC, P37
[2]  
Agha G.A., 1986, Actors: A Model of Concurrent Computation in Distributed Systems, VVolume 844
[3]  
Armstrong J., 2007, Programming Erlang: Software for a Concurrent World, V1st
[4]   Modular encoding of synchronous and asynchronous interactions using open Petri nets [J].
Baldan, Paolo ;
Bonchi, Filippo ;
Gadducci, Fabio ;
Monreale, Giacoma Valentina .
SCIENCE OF COMPUTER PROGRAMMING, 2015, 109 :96-124
[5]  
Best E., 2001, AN EATCS SERIES
[6]  
Bruni R, 2006, LECT NOTES COMPUT SC, V4184, P123
[7]  
Busi N., 1995, LNCS, V962, P145
[8]   Asynchronous sequential processes [J].
Caromel, Denis ;
Henrio, Ludovic ;
Serpette, Bernard Paul .
INFORMATION AND COMPUTATION, 2009, 207 (04) :459-495
[9]  
Caromel Denis, 2005, A Theory of Distributed Objects
[10]   DISTRIBUTED DEADLOCK DETECTION [J].
CHANDY, KM ;
MISRA, J ;
HAAS, LM .
ACM TRANSACTIONS ON COMPUTER SYSTEMS, 1983, 1 (02) :144-156