Lines Matching refs:nthreads
84 static void syncTest(int nthreads, int incs) {
86 Phaser phaser = new Phaser(nthreads + 1);
88 for (int i = 0; i < nthreads; ++i)
90 report(nthreads, incs, timeTasks(phaser), a.sum());
93 static void adderTest(int nthreads, int incs) {
95 Phaser phaser = new Phaser(nthreads + 1);
97 for (int i = 0; i < nthreads; ++i)
99 report(nthreads, incs, timeTasks(phaser), a.sum());
102 static void report(int nthreads, int incs, long time, double sum) {
103 long total = (long)nthreads * incs;
109 nthreads, secs, rate);