8 |
|
* @summary basic safety and liveness of ReentrantLocks, and other locks based on them |
9 |
|
*/ |
10 |
|
|
11 |
< |
import java.util.*; |
12 |
< |
import java.util.concurrent.*; |
13 |
< |
import java.util.concurrent.locks.*; |
11 |
> |
import java.util.concurrent.Callable; |
12 |
> |
import java.util.concurrent.CyclicBarrier; |
13 |
> |
import java.util.concurrent.ExecutorService; |
14 |
> |
import java.util.concurrent.Executors; |
15 |
> |
import java.util.concurrent.Semaphore; |
16 |
> |
import java.util.concurrent.locks.Lock; |
17 |
> |
import java.util.concurrent.locks.ReentrantLock; |
18 |
> |
import java.util.concurrent.locks.ReentrantReadWriteLock; |
19 |
|
|
20 |
|
public final class CheckedLockLoops { |
21 |
|
static final ExecutorService pool = Executors.newCachedThreadPool(); |