Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of Mastering Non-Functional Requirements this week in the Design forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

FBNS: with lock and unlock no need to synchronize  RSS feed

Ian Wark
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

I am only locking the write operations, and I am using RMI.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!