posted 17 years ago
Hi Ranchers,
I am a bit confused about the example for the "Multiple Notification Objects" in Andrews book.
This example never removes the dvdLock (per record lock) from the reservations. This means that once the record is reserved it stays in the reservations map together with the database object for ever (even if the lock is released ). There is not problem regarding the locking as every unlock method sets reserver in the dvdLock to null so the record is free for use, but map grows bigger and bigger until its size is equal to the number of records and it never changes until the program is restarted.
I was not able to figure out how and where to identify the situation where dvdLock can be completele removed from the reservations.
Do you have any ideas?
Regards,
Tomas