Lines Matching refs:nthreads
78 static void casTest(int nthreads, int incs) {
80 Phaser phaser = new Phaser(nthreads + 1);
82 for (int i = 0; i < nthreads; ++i)
84 report(nthreads, incs, timeTasks(phaser), a.get());
87 static void adderTest(int nthreads, int incs) {
89 Phaser phaser = new Phaser(nthreads + 1);
91 for (int i = 0; i < nthreads; ++i)
93 report(nthreads, incs, timeTasks(phaser), a.sum());
96 static void report(int nthreads, int incs, long time, long sum) {
97 long total = (long)nthreads * incs;
103 nthreads, secs, rate);