Saturday, 24 December 2016

wait() and notify() methods in Java

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

Featured post

Development Of JAVA Program