synchronization and locks

i am implementing a database server and a client which connects to it.  i need to implement an interface that was given to me for the server.  there are two methods, lock and unlock, which lock and unlock the specified record.  my question is this: why would i need two methods which lock and unlock records during an update or delete by the client?  can't i take care of that by synchronizing the update and delete methods?
abstractionzAsked:
Who is Participating?
 
JakobACommented:
suncronizing apply only to the program accessing the database.  when 2 or more programs (users) use the same database they affected by eachothers syncronisation, only their own.
0
 
yongsingCommented:
Is this SCJD exam assignment?
0
 
JakobACommented:
Oops:  "they affected"  should be  "they are not affected"
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.