Page 1 of 1

About Question enthuware.ocpjp.v7.2.1522 :

Posted: Sat Jun 20, 2015 2:38 pm
by Danny Sheridan
Hi
Thread T1 calls the notify() method on obj and releases the lock on obj.
This is clearly the right answer but
I'm wondering if T1 calling obj.notify() is necessary?
With T2 not actually waiting but blocked (Thread.State.BLOCKED)?
Mustn't T2 have been awoken already?

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

Posted: Sun Jun 21, 2015 2:01 am
by admin
You are right. The problem statement should say waiting instead of blocked. Fixed.
thank you for your feedback!
HTH,
Paul.