1 |
|
/* |
2 |
|
* Written by Bill Scherer and Doug Lea with assistance from members |
3 |
|
* of JCP JSR-166 Expert Group and released to the public domain, as |
4 |
< |
* explained at http://creativecommons.org/licenses/publicdomain |
4 |
> |
* explained at http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
*/ |
6 |
|
|
7 |
|
import java.util.concurrent.*; |
36 |
|
argc++; |
37 |
|
} |
38 |
|
|
39 |
< |
// Display runtime parameters |
40 |
< |
System.out.print("TimeoutExchangerTest"); |
41 |
< |
System.out.print(" -t " + trialMillis); |
42 |
< |
System.out.print(" -p " + patienceNanos); |
39 |
> |
// Display runtime parameters |
40 |
> |
System.out.print("TimeoutExchangerTest"); |
41 |
> |
System.out.print(" -t " + trialMillis); |
42 |
> |
System.out.print(" -p " + patienceNanos); |
43 |
|
System.out.print(" -r " + nReps); |
44 |
< |
System.out.print(" max threads " + maxThreads); |
45 |
< |
System.out.println(); |
44 |
> |
System.out.print(" max threads " + maxThreads); |
45 |
> |
System.out.println(); |
46 |
|
|
47 |
|
System.out.println("Warmups.."); |
48 |
|
long warmupTime = 1000; |