wait() and notify()
wait() – suspends the thread that invokes it until such time as some other thread invokes notify with this same object.
notify() – releases just one of any threads that are waiting for the object.
Previous slide
Next slide
Back to first slide
View graphic version