• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

lock and unlock in local mode

 
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?
 
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.
 
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
 
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?
 
town drunk
( and author)
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
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic