Searched refs:numberOfThreads (Results 1 – 4 of 4) sorted by relevance
334 int numberOfThreads = -1; in parseAndRun() local347 numberOfThreads = Integer.parseInt(args[i]); in parseAndRun()373 if (numberOfThreads == -1) { in parseAndRun()374 numberOfThreads = 5; in parseAndRun()386 operationsPerThread = totalOperations/numberOfThreads; in parseAndRun()398 runTest(numberOfThreads, numberOfDaemons, operationsPerThread, lock, frequencyMap); in parseAndRun()401 public static void runTest(final int numberOfThreads, final int numberOfDaemons, in runTest() argument418 final Main[] threadStresses = new Main[numberOfThreads + numberOfDaemons]; in runTest()437 threadStresses[t] = t < numberOfThreads ? new Main(lock, t, operations) : in runTest()467 Thread[] runners = new Thread[numberOfThreads]; in runTest()[all …]
20 static final int numberOfThreads = 5; field in Main24 final Thread[] threads = new Thread[numberOfThreads]; in main()
18 static final int numberOfThreads = 2; field in Main34 final Thread[] threads = new Thread[numberOfThreads]; in main()
22 static final int numberOfThreads = 4; field in Main44 final Thread[] threads = new Thread[numberOfThreads]; in main()