FBNS: with lock and unlock no need to synchronize Data.java?
posted 11 years ago
I am looking at Mr. Habibe's coauthored book and the locking mechanism...
A lot has been said about this. So I'll be brief. If I follow the "one database instance per client" and use a locking mechanism that synchronizes on a static collection variable that keeps track of which records are locked, am I safe without ANY synchronized methods in Data.java?
I am only locking the write operations, and I am using RMI.