Scala Actors: Unifying thread-based and event-based programming

被引:144
|
作者
Haller, Philipp [1 ]
Odersky, Martin [1 ]
机构
[1] Ecole Polytech Fed Lausanne, CH-1015 Lausanne, Switzerland
关键词
Concurrent programming; Actors; Threads; Events;
D O I
10.1016/j.tcs.2008.09.019
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
There is an impedance mismatch between message-passing concurrency and virtual machines, such as the JVM. VMs usually map their threads to heavyweight OS processes. Without a lightweight process abstraction, users are often forced to write parts of concurrent applications in an event-driven style which obscures control flow,and increases the burden on the programmer. In this paper we show how thread-based and event-based programming can be unified under a single actor abstraction. Using advanced abstraction mechanisms of the Scala programming language, we implement our approach on unmodified JVMs. Our programming model integrates well with the threading model of the underlying VM. (C) 2008 Elsevier B.V. All rights reserved.
引用
收藏
页码:202 / 220
页数:19
相关论文
共 50 条
  • [1] Thread-based vs event-based implementation of a group communication service
    Mishra, S
    Yang, RG
    [J]. FIRST MERGED INTERNATIONAL PARALLEL PROCESSING SYMPOSIUM & SYMPOSIUM ON PARALLEL AND DISTRIBUTED PROCESSING, 1998, : 398 - 402
  • [2] Thread-based wearable devices
    Xia, Junfei
    Khaliliazar, Shirin
    Hamedi, Mahiar Max
    Sonkusale, Sameer
    [J]. MRS BULLETIN, 2021, 46 (06) : 502 - 511
  • [3] Thread-based mobility in Oz
    Havelka, D
    Schulte, C
    Brand, P
    Haridi, S
    [J]. MULTIPARADIGM PROGRAMMING IN MOZART/OZ, 2005, 3389 : 137 - 148
  • [4] Event-Based Microcontroller Programming in Datalog
    Brass, Stefan
    [J]. RULES AND REASONING, RULEML+RR 2021, 2021, 12851 : 80 - 94
  • [5] Thread-based Benchmarking deployment
    Lugan, S
    Macq, B
    [J]. SECURITY, STEGANOGRAPHY, AND WATERMARKING OF MULTIMEDIA CONTENTS VI, 2004, 5306 : 248 - 255
  • [6] Thread-based wearable devices
    Junfei Xia
    Shirin Khaliliazar
    Mahiar Max Hamedi
    Sameer Sonkusale
    [J]. MRS Bulletin, 2021, 46 : 502 - 511
  • [7] Thread-based analysis of sequence diagrams
    Dan, Haitao
    Hierons, Robert M.
    Counsell, Steve
    [J]. FORMAL TECHNIQUES FOR NETWORKED AND DISTRIBUTED SYSTEMS - FORTE 2007, 2007, 4574 : 19 - +
  • [8] Event-based programming without inversion of control
    Haller, Philipp
    Odersky, Martin
    [J]. MODULAR PROGRAMMING LANGUAGES, PROCEEDINGS, 2006, 4228 : 4 - 22
  • [9] Stochastic scheduling with event-based dynamic programming
    Ger Koole
    [J]. Mathematical Methods of Operations Research, 2000, 51 : 249 - 261
  • [10] A thread-based wearable sweat nanobiosensor
    Zhao, Chen
    Li, Xiao
    Wu, Qiyang
    Liu, Xinyu
    [J]. BIOSENSORS & BIOELECTRONICS, 2021, 188