edu.rit.pj.test
Class Test05

java.lang.Object
  extended by edu.rit.pj.test.Test05

public class Test05
extends Object

Class Test05 is a unit test main program for classes ParallelTeam, ParallelRegion, and IntegerForLoop. A parallel for loop iterates over a given range of indexes. Each iteration prints the loop index and the thread index executing that loop index. If the loop index exceeds 10, an exception is thrown.

Usage: java -Dpj.nt=K edu.rit.pj.test.Test05 lb ub
K = Number of parallel threads
lb = Loop index lower bound, inclusive
ub = Loop index upper bound, inclusive


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

main

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

Throws:
Exception


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