All Packages Class Hierarchy This Package Previous Next Index
When a compute-intensive sequential algorithm is to be parallelized for execution on a SMP, it often results in a very similar looking parallel algorithm that should be executed in one thread for each processor and will work on a different portion of the total problem in different threads. This interface is intended for this kind of parallel algorithms.
The total number of threads put to work on this problem and the number of the current thread is supplied to the method of this interface, so that the parallel algorithm can easily determine on which portion of the total problem it should work.
public abstract void runParallel(int myNum, int totalNum)
The total number of threads that work on the problem by calling this method is supplied, as well as the number of the current thread calling the method.
All Packages Class Hierarchy This Package Previous Next Index