April 2017
Beginner
504 pages
14h 11m
English
The java.util.concurrent.Condition interface in functionality is similar to the built-in wait, notify, and notifyAll. Any implementation of Lock should create new Condition objects and return as a result to the invocation of the newCondition method. When the thread has a Condition, it can call await, signal, and signalAll when the thread has the lock that created the condition object.
The functionality is very similar to the methods of Object mentioned. However, the big difference is that you can create many Condition for a single Lock and they will work independent of each other, but not independent of the Lock.
Read now
Unlock full access