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: 10066
- 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.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: Google [Bot], pavvel and 217 guests