--- jsr166/src/test/loops/FJPhaserJacobi.java 2009/10/30 14:15:04 1.4 +++ jsr166/src/test/loops/FJPhaserJacobi.java 2012/07/04 20:07:01 1.9 @@ -1,13 +1,6 @@ -/* - * Written by Doug Lea with assistance from members of JCP JSR-166 - * Expert Group and released to the public domain, as explained at - * http://creativecommons.org/licenses/publicdomain - */ - // Barrier version of Jacobi iteration import java.util.concurrent.*; -//import jsr166y.*; public class FJPhaserJacobi { @@ -26,11 +19,12 @@ public class FJPhaserJacobi { } catch (Exception e) { - System.out.println("Usage: java FJPhaserJacobi "); + System.out.println("Usage: java ThreadPhaserJacobi "); return; } ForkJoinPool fjp = new ForkJoinPool(); + // int granularity = (n * n / fjp.getParallelism()) / 2; int granularity = n * n / fjp.getParallelism(); dimGran = (int)(Math.sqrt(granularity));