• Post Reply Bookmark Topic Watch Topic
  • New Topic

lock and unlock in local mode  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!