1 |
|
/* |
2 |
|
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
|
* Expert Group and released to the public domain, as explained at |
4 |
< |
* http://creativecommons.org/licenses/publicdomain |
4 |
> |
* http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
*/ |
6 |
|
|
7 |
|
import java.util.concurrent.*; |
10 |
|
import java.util.*; |
11 |
|
|
12 |
|
public final class ContextSwitchTest { |
13 |
< |
final static int iters = 1000000; |
13 |
> |
static final int iters = 1000000; |
14 |
|
static AtomicReference turn = new AtomicReference(); |
15 |
|
public static void main(String[] args) throws Exception { |
16 |
|
test(); |