In the ReservationsManager class(Page 154,Topic:Creating Our Logical Reserve Methods)
it has there variables:
---------------------
And a part of reserveDVDMethod :
At the beginning of the method,it already has the lock.
but in the if statement it calls the await() method.Which lock
is the
thread waiting for?
----------------------------------------------------------------
In the description of the reserve method,it says:
We have decided to allow any UPC to be reserved, even if no such record exists. This ensures that a DVD can also be reserved when we are first adding it to the system.
If the DVD not exist,how can we reserve it?I was really confused.
[ August 25, 2007: Message edited by: Merlin Chen ]