Euro-Par 2009 Parallel Processing

Volume 5704 of the series Lecture Notes in Computer Science pp 875-886

XJava: Exploiting Parallelism with Object-Oriented Stream Programming

  • Frank OttoAffiliated withUniversity of Karlsruhe
  • , Victor PankratiusAffiliated withUniversity of Karlsruhe
  • , Walter F. TichyAffiliated withUniversity of Karlsruhe

* Final gross prices may vary according to local VAT.

Get Access


This paper presents the XJava compiler for parallel programs. It exploits parallelism based on an object-oriented stream programming paradigm. XJava extends Java with new parallel constructs that do not expose programmers to low-level details of parallel programming on shared memory machines. Tasks define composable parallel activities, and new operators allow an easier expression of parallel patterns, such as pipelines, divide and conquer, or master/worker. We also present an automatic run-time mechanism that extends our previous work to automatically map tasks and parallel statements to threads.

We conducted several case studies with an open source desktop search application and a suite of benchmark programs. The results show that XJava reduces the opportunities to introduce synchronization errors. Compared to threaded Java, the amount of code could be reduced by up to 39%. The run-time mechanism helped reduce effort for performance tuning and achieved speedups up to 31.5 on an eight core machine.