System.out.println(getName() + " waiting"); flag.await(); System.out.println(getName() + " ending"); }
System.out.println(getTaskName() + " waiting"); flag.await(); System.out.println(getTaskName() + " ending"); }
   run()      {      mailbox.send(getName());      try { sleep(200); } catch (InterruptedException e) {}            System.out.println(getName() + " waiting");      flag.await();      System.out.println(getName() + " ending");      }