Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Lock() and unlock()  RSS feed

 
srinivas kanchanavally
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey guys
can any one of you clear me this question.
when the program works in a non-networked mode, the database and user interface run in the same VM and no networking is performed, and no sockets should be created. so will there be ever a scinerio that a record need to be locked/unlocked? since there is only one client I dont think we need to lock/unlock a record but just for confirmation.
Thanks in advance
Srinivas.Kanchanavally
 
Aleksey Matiychenko
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is one scenario:
Consider future functionality where a thread is added to the program to update a flight information from some other database. While the updates are being made no changes by client should be permitted.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!