>>591
// 並行処理するメソッド
void doThreadMethod() {
  // 処理
  latch.countDown();
}
// 監視スレッド
void doMultiThreadWorks() {
  //すべてのスレッドのインスタンス変数で共有させる
   CountDownLatch latch = new CountDownLatch(1);
  // 各スレッドの起動
  WorkerThread thread1 = new WorkerThread(latch);
  WorkerThread thread2 = new WorkerThread(latch);
  caunt.await(); // どれかが終了するまでブロック
}