package be.ac.vub.ir.multithreading; import flanagan.math.Fmath; public class BarrierWithReduction { final int NBR_ELEMENTS, NBR_RUNS; int[] data; public BarrierWithReduction(int nbrElements, int nbrRuns){ this.NBR_ELEMENTS = nbrElements; NBR_RUNS = nbrRuns; data = new int[nbrElements]; } // ** Main ** public static void main(String[] args) { new BarrierWithReduction(10, 10).runSeq(); System.out.println("PARALLEL RUN:"); new BarrierWithReduction(10, 10).runParallel(); } // ** sequential run ** void runSeq(){ for(int r=0;r