# | Line 12 | Line 12 | public class ExchangeLoops { | |
---|---|---|
12 | static final int NCPUS = Runtime.getRuntime().availableProcessors(); | |
13 | ||
14 | static final int DEFAULT_THREADS = NCPUS + 2; | |
15 | < | static final long DEFAULT_TRIAL_MILLIS = 10000; |
15 | > | static final long DEFAULT_TRIAL_MILLIS = 10000; |
16 | ||
17 | public static void main(String[] args) throws Exception { | |
18 | int maxThreads = DEFAULT_THREADS; | |
# | Line 73 | Line 73 | public class ExchangeLoops { | |
73 | Thread.sleep(sleepTime); | |
74 | } | |
75 | ||
76 | – | |
76 | } | |
77 | ||
78 | static void oneRun(int nThreads, long trialMillis) throws Exception { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |