Mario Leyton is a Researcher at NIC Labs. He has authored more than 10 international publications on scientific journals and conferences. He performed his PhD studies at INRIA Sophia Antipolis, France, with a scholarship co-financed by INRIA and CONICYT Chile; received a PhD degree from Universite de Nice-Sophia Antipolis in 2008; and a Computer Science Engineer degree, with maximum distinction, from University of Chile in 2005. His main research interest are in parallel/distributed computing. In particular, the field of structured parallel programming models. Mario has posted 1 posts at DZone. View Full User Profile

Skandium Java Multi-core Library Release 1.0b2

11.19.2009
| 3165 views |
  • submit to reddit

Parallelism patterns for Multi-core in Java

Version 1.0b2 of the Skandium Java Multi-core Library has been released at: http://skandium.niclabs.cl/

Skandium is a Java based Algorithmic Skeleton library for high-level parallel programming of multi-core architectures. Skandium provides basic nestable parallelism patterns, which can be composed to program more complex applications. The supported parallelism patterns are: farm (master-slave), pipe, for, while, if, map, fork, and divide and conquer.

To use the  Skandium Library you should follow these steps (detailed in a Tutorial):

  • Identify the required skeleton patterns .

    For example, the Map skeleton.

  • Fill the skeleton patterns with the application's functional (ie business) codes.

    For Map this corresponds to three types of functions: Split, Execute, and Merge.

  • Define the data types, used to move data from one muscle to the next.

    For  example, we can define  an Interval type used to represent the start and end positions. For the result of the computation we could use a standard Java type such as BigDecimal to represent the computation's result.

  • Input the data and wait for the results.

    Which corresponds to the main thread's execution.

 For furhter information visit the Skandium homepage at http://skandium.niclabs.cl/

 

0
Average: 5 (1 vote)
Published at DZone with permission of its author, Mario Leyton.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)