Cache Implementation with ReentrantReadWriteLock BUT how to lock upgrade??
Ulas Ergin
Ranch Hand
Joined: Oct 10, 2002
Posts: 77
posted
0
Hello all,
I have a question about lock upgrading.Specifically what bothers me is between readlock.unlock() and following writelock.lock()...
I am providing a nearly complete implementation for a sample cache.I just omitted actual loading of cached data from database.
I appreciate if you can review the code and share your thoughts. I tried to express my concern in the java comments .