• Post Reply Bookmark Topic Watch Topic
  • New Topic

lock and unlock in local mode

 
Prakash Krishnamurthy
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we need to implement the lock and unlock in the locak mode?
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Do we need to implement the lock and unlock in the locak mode?

That's a matter of debate and ultimately the choice that you need to make and justify. However, it seems that the general consensus is that there is no locking in local mode.
Eugene.
 
walid aly
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BUT IF THERE IS NO LOCK IN LOCAL MODE???
what can i write in the lock method in class data??
walid
 
Brian Blignaut
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Who says that you need to write anything in the data class?
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Walid,
Just because you provide a locking method, it does not follow that the method needs to be called in local mode.
All best,
M, author
The Sun Certified Java Developer Exam with J2SE 1.4
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!