lock.notify();
lock.notifyAll();
   public void put(Object o) {      synchronized (lock) {         vector.addElement(o);//         if (vector.size() > 5)//            System.out.println(vector.size());         // tell waiting threads to wake up         lock.notify();      }   }