Correctly translating concurrency primitives

Jan Schwinghammer, David Sabel, Manfred Schmidt-Schauß, Joachim Niehren
2009 Proceedings of the 2009 ACM SIGPLAN workshop on ML - ML '09  
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
more » ... ate 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.
doi:10.1145/1596627.1596633 fatcat:orks6n5eczeixaf6sgutepezau