Solved

When Is It a Good Idea to Call NotifyAll in a Synchronized

Question 80

Multiple Choice

When is it a good idea to call notifyAll in a synchronized method?


A) Whenever you exit it.
B) Upon exit, but only if threads before have called wait.
C) Upon exit, but only if the thread has replenished a needed resource.
D) Immediately upon entering the method.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions