Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FBNS: with lock and unlock no need to synchronize Data.java?

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

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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic