7 |
|
*/ |
8 |
|
|
9 |
|
import junit.framework.*; |
10 |
< |
import java.util.concurrent.locks.*; |
11 |
< |
import java.util.concurrent.*; |
10 |
> |
import java.util.concurrent.locks.Condition; |
11 |
> |
import java.util.concurrent.locks.ReentrantLock; |
12 |
> |
import java.util.concurrent.CountDownLatch; |
13 |
> |
import java.util.concurrent.CyclicBarrier; |
14 |
|
import static java.util.concurrent.TimeUnit.MILLISECONDS; |
15 |
|
import java.util.*; |
14 |
– |
import java.io.*; |
16 |
|
|
17 |
|
public class ReentrantLockTest extends JSR166TestCase { |
18 |
|
public static void main(String[] args) { |