424 |
|
* waits for the second thread's party to arrive |
425 |
|
*/ |
426 |
|
new Thread() { |
427 |
< |
|
427 |
> |
|
428 |
|
public void run() { |
429 |
|
getRunnable(SMALL_DELAY_MS).run(); |
430 |
|
int phase = phaser.awaitAdvance(phaser.arrive()); |
437 |
|
}.start(); |
438 |
|
/* |
439 |
|
* This thread will cause the first thread run to wait, in doing so |
440 |
< |
* the main thread will force termination in which the first thread |
441 |
< |
* should exit peacefully as this one |
440 |
> |
* the main thread will force termination in which the first thread |
441 |
> |
* should exit peacefully as this one |
442 |
|
*/ |
443 |
|
new Thread() { |
444 |
|
|