Actors That Unify Threads and Events

  • Philipp Haller
  • Martin Odersky
Conference paper

DOI: 10.1007/978-3-540-72794-1_10

Part of the Lecture Notes in Computer Science book series (LNCS, volume 4467)
Cite this paper as:
Haller P., Odersky M. (2007) Actors That Unify Threads and Events. In: Murphy A.L., Vitek J. (eds) Coordination Models and Languages. COORDINATION 2007. Lecture Notes in Computer Science, vol 4467. Springer, Berlin, Heidelberg

Abstract

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 implemented our approach on unmodified JVMs. Our programming model integrates well with the threading model of the underlying VM.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer Berlin Heidelberg 2007

Authors and Affiliations

  • Philipp Haller
    • 1
  • Martin Odersky
    • 1
  1. 1.Programming Methods Lab (LAMP), École Polytechnique Fédérale de Lausanne (EPFL), 1015 LausanneSwitzerland

Personalised recommendations