Lines Matching refs:nthreads
73 static void oneTest(int nthreads, int iters) throws Exception {
74 System.out.println("Threads: " + nthreads);
77 new BuiltinLockLoop().test(v, nthreads, iters);
80 new ReentrantLockLoop().test(v, nthreads, iters);
83 new MutexLoop().test(v, nthreads, iters);
86 new ReentrantWriteLockLoop().test(v, nthreads, iters);
89 new ReentrantReadWriteLockLoop().test(v, nthreads, iters);
92 new SemaphoreLoop().test(v, nthreads, iters);
95 new FairSemaphoreLoop().test(v, nthreads, iters);
98 new FairReentrantLockLoop().test(v, nthreads, iters);
101 new FairReentrantWriteLockLoop().test(v, nthreads, iters);
104 new FairReentrantReadWriteLockLoop().test(v, nthreads, iters);
128 final void test(int initialValue, int nthreads, int iters) throws Exception {
131 barrier = new CyclicBarrier(nthreads+1, timer);
132 for (int i = 0; i < nthreads; ++i)
137 long tpi = time / (iters * nthreads);