public class Parallel
extends java.lang.Object
Constructor and Description |
---|
Parallel() |
Modifier and Type | Method and Description |
---|---|
static <T extends BlockedRange<T>> |
For(T range,
PForTask<T> task)
Parallel For Loop (1- and 2-dimensional)
|
static <T extends BlockedRange<T>> |
For(T range,
PForTask<T> task,
IThreadPool pool) |
static <T,K extends BlockedRange<K>> |
Reduce(K range,
PReduceJob.PReduceTask<T,K> task)
Parallel reduce.
|
static <T> void |
While(IStructure<T> data,
PWhileJob.PWhileTask<T> task)
Parallel while loop: iterates while elements in the data structure
|
public static <T extends BlockedRange<T>> void For(T range, PForTask<T> task, IThreadPool pool)
public static <T extends BlockedRange<T>> void For(T range, PForTask<T> task)
range
- 1- or 2-dimensionaltask
- task object (body of for loop)public static <T,K extends BlockedRange<K>> T Reduce(K range, PReduceJob.PReduceTask<T,K> task)
T
- return type (implicit)range
- 1- or 2-dimensionaltask
- body of reduce looppublic static <T> void While(IStructure<T> data, PWhileJob.PWhileTask<T> task)
T
- return type (implicit)data
- data structure for worktask
- while loop body