Correctly translating concurrency primitives

  • Authors:
  • Jan Schwinghammer;David Sabel;Manfred Schmidt-Schauß;Joachim Niehren

  • Affiliations:
  • Saarland University, Saarbrücken, Germany;Goethe-University, Frankfurt, Germany;Goethe-University, Frankfurt, Germany;INRIA, Lille, France

  • Venue:
  • Proceedings of the 2009 ACM SIGPLAN workshop on ML
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Motivated by the question of correctness of a specific implementation of concurrent buffers in the lambda calculus with futures underlying Alice ML, we prove that concurrent buffers and handled futures can correctly encode each other. Our translations map waiting on handled futures to queuing of concurrent buffers and vice versa. Correctness of translations means that they preserve and reflect the observations of may- and must-convergence. As a consequence of compositionality, they are also adequate with respect to a contextually defined notion of observational program semantics. We demonstrate that our approach to the correctness of implementations applies uniformly to the whole compilation process from high-level to low-level concurrent languages.