Exceptions for Algorithmic Skeletons

  • Mario Leyton
  • Ludovic Henrio
  • José M. Piquer
Conference paper

DOI: 10.1007/978-3-642-15291-7_3

Volume 6272 of the book series Lecture Notes in Computer Science (LNCS)
Cite this paper as:
Leyton M., Henrio L., Piquer J.M. (2010) Exceptions for Algorithmic Skeletons. In: D’Ambra P., Guarracino M., Talia D. (eds) Euro-Par 2010 - Parallel Processing. Euro-Par 2010. Lecture Notes in Computer Science, vol 6272. Springer, Berlin, Heidelberg

Abstract

Algorithmic skeletons offer high-level abstractions for parallel programming based on recurrent parallelism patterns. Patterns can be combined and nested into more complex parallelism behaviors. Programmers fill the skeleton patterns with the functional (business) code, which transforms the generic skeleton into a specific application. However, when the functional code generates exceptions, programmers are exposed to implementation details of the skeleton library, breaking the high-level abstraction principle. Furthermore, related parallel activities must be stopped as the exception is raised. This paper describes how to handle exceptions in algorithmic skeletons without breaking the high-level abstractions of the programming model. We describe both the behavior of the framework in a formal way, and its implementation in Java: the Skandium Library.

Keywords

Algorithmic skeletons exceptions semantics 

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag Berlin Heidelberg 2010

Authors and Affiliations

  • Mario Leyton
    • 1
  • Ludovic Henrio
    • 2
  • José M. Piquer
    • 3
  1. 1.NIC LabsUniversidad de ChileSantiagoChile
  2. 2.INRIA Sophia-AntipolisUniversité de Nice Sophia-Antipolis, CNRS - I3SSophia-Antipolis CedexFrance
  3. 3.Departamento de Ciencias de la ComputaciónUniversidad de ChileSantiagoChile