Language and Virtual Machine Support for Efficient Fine-Grained Futures in Java
Authors:
- 1 September 2007
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE) in 16th International Conference on Parallel Architecture and Compilation Techniques (PACT 2007)
- No. 1089795X,p. 130-139
Abstract
In this work, we investigate the implementation of futures in Java J2SE v 5.0. Java 5.0 provides an interface-based implementation of futures that enables users to encapsulate potentially asynchronous computation and to define their own execution engines for futures. Although this methodology decouples thread scheduling from application logic, for applications with fine-grained parallelism, this model imposes an undue burden on the average users and introduces significant performance overhead. To address these issues, we investigate the use of lazy futures and offer an alternative implementation to the Java 5.0 approach. In particular, we present a directive-based programming model for using futures in Java that uses annotations in Java 5.0 (as opposed to interfaces) and a lazy future implementation to significantly simplify programmer effort. Our directive-based future system employs novel compilation and runtime techniques that transparently and adaptively split and spawn futures for parallel execution. All such decisions are automatic and guided by dynamically determined future granularity and underlying resource availability. We empirically evaluate our future implementation using different Java Virtual Machine configurations and common Java benchmarks that implement fine-grained parallelism. We compare directive-based lazy futures with lazy and Java 5.0 futures and show that our approach is significantly more scalable.Keywords
This publication has 16 references indexed in Scilit:
- jContractor: Introducing Design-by-Contract to Java Using Reflective Bytecode InstrumentationFormal Methods in System Design, 2005
- Safe futures for Java2005
- Barriers2004
- StackThreads/MP1999
- The implementation of the Cilk-5 multithreaded language1998
- Cilk: An Efficient Multithreaded Runtime SystemJournal of Parallel and Distributed Computing, 1996
- Lazy Threads: Implementing a Fast Parallel CallJournal of Parallel and Distributed Computing, 1996
- Leapfrogging1993
- Lazy task creation: a technique for increasing the granularity of parallel programsIEEE Transactions on Parallel and Distributed Systems, 1991
- MULTILISP: a language for concurrent symbolic computationACM Transactions on Programming Languages and Systems, 1985