0

what does the thread do after calling notify()?

when a thread calls notify(), the other thread which was in wait condition becomes active and starts running, at that point of time what does that thread do which has called notify?

3rd Oct 2016, 1:44 AM
SIDHARTH NEGI
SIDHARTH NEGI - avatar
1 Antwort
+ 1
notify(): continuing a thread, which was previously called method wait() wait(): releases the monitor and puts the calling thread on hold until another thread calls the method notify()
24th Aug 2019, 3:54 PM
Владимир Азаренко
Владимир Азаренко - avatar