Writing concurrent desktop applications in an actor-based programming model

  • Authors:
  • Jan Schäfer;Arnd Poetzsch-Heffter

  • Affiliations:
  • University of Kaiserslautern, Kaiserslautern, Germany;University of Kaiserslautern, Kaiserslautern, Germany

  • Venue:
  • Proceedings of the 3rd International Workshop on Multicore Software Engineering
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

GUI frameworks, like Swing, are typically not thread-safe. Desktop applications are thus often written in a purely single-threaded, event-based style. Introducing threads into such applications is not an easy task as potentially all parts of the application may be affected by this change. Instead of using a thread-based programming model, actor models are regaining attention lately. The actor-based CoBox model is based on isolated object-oriented components communicating via asynchronous method calls. The model is implemented in a Java extension, called JCoBox, and has been successfully used to implemented several concurrent desktop applications. In this paper we show how a typical desktop application is designed and implemented in JCoBox.