[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

synchronization and locks

Posted on 2003-11-23
3
Medium Priority
?
285 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
  • 2
3 Comments
 
LVL 9

Expert Comment

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

Accepted Solution

by:
JakobA earned 500 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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 scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month19 days, 13 hours left to enroll

872 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