How can the wait() and notify() methods be called on Objects that are not Threads? That doesn\'t really make sense, does it?
wait()
notify()
Surely, it mus
"This method should only be called by a thread that is the owner of this object's monitor." So I think you must make sure there is a thread who is the monitor on the object.