Safe parallel programming with session Java

Nicholas Ng, Nobuko Yoshida, Olivier Pernet, Raymond Hu, Yiannos Kryftis

Research output: Chapter in Book/Report/Conference proceedingConference contribution

18 Citations (Scopus)


The session-typed programming language Session Java (SJ) has proved to be an effective tool for distributed programming, promoting structured programming for communications and compile-time safety. This paper investigates the use of SJ for session-typed parallel programming, and introduces new language primitives for chained iteration and multi-channel communication. These primitives allow the efficient coordination of parallel computation across multiple processes, thus enabling SJ to express the complex communication topologies often used by parallel algorithms. We demonstrate that the new primitives yield clearer and safer code for pipeline, ring and mesh topologies through implementations of representative parallel algorithms. We then present a semantics and session typing system including the new primitives, and prove type soundness and deadlock-freedom for our implementations. The benchmark results show that the new SJ is substantially faster than the original SJ and performs competitively against MPJ Express used as reference.

Original languageEnglish
Title of host publicationCoordination Models and Languages - 13th International Conference, COORDINATION 2011, Proceedings
Number of pages17
Publication statusPublished - 4 Jul 2011
Externally publishedYes
Event13th International Conference on Coordination Models and Languages, COORDINATION 2011 - Reykjavik, Iceland
Duration: 6 Jun 20119 Jun 2011

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume6721 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349


Conference13th International Conference on Coordination Models and Languages, COORDINATION 2011


Dive into the research topics of 'Safe parallel programming with session Java'. Together they form a unique fingerprint.

Cite this