Hi,
The only case that this scenario might happen is when a thread access a synchronized block with a lock on object A and then inside the synchronized block the call to wait is on object B. isn't it?
Thanks in advance.
The_Nick.
About Question enthuware.ocpjp.v7.2.1559 :
Moderator: admin
-
- Posts: 132
- Joined: Thu May 16, 2013 9:23 am
- Contact:
-
- Site Admin
- Posts: 10068
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1559 :
You can't call wait on B if you don't have a lock on B first.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 218 guests