Solved

synchronization and locks

Posted on 2003-11-23
3
279 Views
Last Modified: 2010-03-31
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?
0
Comment
Question by:abstractionz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Expert Comment

by:yongsing
ID: 9808016
Is this SCJD exam assignment?
0
 
LVL 15

Accepted Solution

by:
JakobA earned 125 total points
ID: 9808062
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
 
LVL 15

Expert Comment

by:JakobA
ID: 9808067
Oops:  "they affected"  should be  "they are not affected"
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question