Class Test20

  extended by edu.rit.pj.test.Test20

public class Test20
extends Object

Class Test20 is a hybrid parallel unit test program for class ReplicatedInteger. The program runs on a number of processors in the cluster with a number of threads in each process. The program generates a sequence of random integers. Each random integer updates a ReplicatedInteger variable using minimum as the reduction operator; thus, the variable always holds the smallest random integer. Once all processes have finished, each process prints the value of its variable.

Usage: java -Dpj.nt=nt edu.rit.pj.test.Test20 seed N
np = Number of processes
nt = Number of CPUs per process
seed = Random seed
N = Number of random integers

Method Summary
static void main(String[] args)
          Unit test main program.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


public static void main(String[] args)
                 throws Exception
Unit test main program.


Copyright © 2005-2012 by Alan Kaminsky. All rights reserved. Send comments to ark­@­