Page 1 of 1

About Question enthuware.ocpjp.v8.2.1522 :

Posted: Sat Jun 18, 2016 1:07 am
by sahoo007tm
notify() does not guarantee T2 will be notified, if there are more threads, T2 may not be notified.
notifyAll() would be more appropriate answer.

Re: About Question enthuware.ocpjp.v8.2.1522 :

Posted: Sat Jun 18, 2016 10:59 am
by admin
The question gives you a clear cut situation. There is no other thread.