Solved

synchronization and locks

Posted on 2003-11-23
3
276 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Should localization be done inside spring controller 5 37
JAVA API design with micro service cloud in mind 1 77
American Express @Work site and Java 4 64
Java array 21 82
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

749 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