notify() does not guarantee T2 will be notified, if there are more threads, T2 may not be notified.
notifyAll() would be more appropriate answer.
About Question enthuware.ocpjp.v8.2.1522 :
Moderator: admin
-
- Posts: 9
- Joined: Sat Jun 18, 2016 12:44 am
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1522 :
The question gives you a clear cut situation. There is no other thread.
Who is online
Users browsing this forum: No registered users and 20 guests