About Question enthuware.ocpjp.v7.2.1522 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
Danny Sheridan
Posts: 30
Joined: Sat May 02, 2015 4:48 pm
Contact:

About Question enthuware.ocpjp.v7.2.1522 :

Post 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?

admin
Site Admin
Posts: 10389
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

You are right. The problem statement should say waiting instead of blocked. Fixed.
thank you for your feedback!
HTH,
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests