/** * A driver class to illustrate the addem class * * @author (David John) * @version (November, 2009) */ public class driver { /** * The main thread of the program. */ public static void main(String[] args) { // set the number of cells in the array (inside of addem), and the number // of threads to be used in the computation int numbercells=1000000; int numberthreads=20; // create an array of addem objects, one for each thread addem [] xthreads = new addem[numberthreads]; // for each addem object in the array, call the constructor to // set the start/end indices for a computation for(int i=0;i