Wait():-
It is a method of class Object which
is used to suspend a thread in monitor.
public void wait()
throws InterruptedException;
Notify():-
It is also a method of class Object
which is used to resume a thread which has suspended in monitor.
public void
notify();
No comments:
Post a Comment