SODA

Flow Java: declarative concurrency for Java.

Drejhammar, Frej and Haridi, Seif and Brand, Per and Schulte, Christian (2003) Flow Java: declarative concurrency for Java. In: Proceedings of the Nineteenth International Conference on Logic Programming, 9-13 Dec 2003, Mumbai, India.

[img]
Preview
PDF
158Kb

Abstract

Logic variables pioneered by (concurrent) logic and concurrent constraint programming are powerful mechanisms for automatically synchronizing concurrent computations. They support a declarative model of concurrency that avoids explicitly suspending and resuming computations. This paper presents Flow Java which conservatively extends Java with single assignment variables and futures as variants of logic variables. The extension is conservative with respect to object-orientation, types, parameter passing, and concurrency in Java. Futures support secure concurrent abstractions and are essential for seamless integration of single assignment variables into Java. We show how Flow Java supports the construction of simple and concise concurrent programming abstractions. We present how to moderately extend compilation and the runtime architecture of an existing Java implementation for Flow Java. Evaluation using standard Java benchmarks shows that in most cases the overhead is between 10% and 40%. For some pathological cases the runtime increases by up to 75%.

Item Type:Conference or Workshop Item (Paper)
ID Code:2807
Deposited By:INVALID USER
Deposited On:13 Jun 2008
Last Modified:18 Nov 2009 16:14

Repository Staff Only: item control page