Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic