About Question enthuware.ocpjp.v8.2.1099 :

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
Russtam
Posts: 9
Joined: Fri Dec 04, 2015 11:27 am
Contact:

About Question enthuware.ocpjp.v8.2.1099 :

Post by Russtam »

The thread that has called the wait() will not come out of WAITING state until some other thread calls notify or notifyAll on the same object or interrupts the thread.
From JavaDoc:
As in the one argument version, interrupts and spurious wakeups are possible, and this method should always be used in a loop:
synchronized (obj) {
while (<condition does not hold>)
obj.wait();
... // Perform action appropriate to condition
}
I think its need to add "or spurious wakeups" to option.

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

Re: About Question enthuware.ocpjp.v8.2.1099 :

Post by admin »

Added.
thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests