• Post Reply Bookmark Topic Watch Topic
  • New Topic

I need to lock the "read" function?

 
xiaoma wang
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, everybody:
In the FBM assignment, it says " Note that the locking required is effectively a "write" lock only". In my understanding, we do not need to lock the concurrently "read" activities on the record even this record is being modified by another client. Is that correct?
Thanks!
Xiaoma Wang
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Xiaoma,
That's the way I understand it even though you may get an occasional "dirty read." You just have to remember to run the sequence lock, read, modify, unlock for a booking transaction.
Hope this helps
Michael Morris
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!