Solved

synchronization and locks

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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
runtime exception 2 62
Better way to make a string with template variables in java 3 48
Adding multiple JVM environments to RedHat 6 7 78
Java program running SQL query 5 59
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

738 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