How the use of i and d locks can increase concurrency

Assignment Help Basic Computer Science
Reference no: EM131210844

Suppose that a DBMS recognizes increment, which increments an integervalued object by 1, and decrement as actions, in addition to reads and writes. A transaction that increments an object need not know the value of the object; increment and decrement are versions of blind writes. In addition to shared and exclusive locks, two special locks are supported: An object must be locked in I mode before incrementing it and locked in D mode before decrementing it. An I lock is compatible with another I or D lock on the same object, but not with S and X locks.

1. Illustrate how the use of I and D locks can increase concurrency. (Show a schedule allowed by Strict 2PL that only uses S and X locks. Explain how the use of I and D locks can allow more actions to be interleaved, while continuing to follow Strict 2PL.)

2. Informally explain how Strict 2PL guarantees serializability even in the presence of I and D locks. (Identify which pairs of actions conflict, in the sense that their relative order can affect the result, and show that the use of S, X, I, and D locks according to Strict 2PL orders all conflicting pairs of actions to be the same as the order in some serial schedule.)

Reference no: EM131210844

Questions Cloud

Do you agree or disagree with given statement : "According to Ricardo's analysis, a country exports any good whose production requires fewer labor hours per unit than the labor hours per unit needed to produce the good in the foreign country.- Do you agree or disagree? Why?
Evaluate the articles as they relate to what was learned : The assignment requires the use of the Library/Internet research to locate and study written articles on tax evasion in regards to financial accounting. The student is required to critique, analyze, and evaluate the articles as they relate to what..
Imports are the good thing about international trade : "For my country, imports are the good thing about international trade, whereas exports are more like the necessary evil."- Do you agree or disagree? Why?
Do you agree or disagree with given characterization : "Mercantilism recommends that a country should limit its exports, so that more of the otherwise-exportable products are instead available for local consumption." - Do you agree or disagree with this characterization of mercantilism's message?
How the use of i and d locks can increase concurrency : Illustrate how the use of I and D locks can increase concurrency. (Show a schedule allowed by Strict 2PL that only uses S and X locks. Explain how the use of I and D locks can allow more actions to be interleaved, while continuing to follow Strict..
Compare and critique one published quantitative study : Use the library databases to identify, describe, compare, and critique one published quantitative study and one published qualitative study in a global context regarding the variables that affect employees' organizational commitment. Provide a co..
Would producing at the halfway point be better or worse : If the countries still traded with each other at the relative price of 1 W/C , would producing at the halfway point be better or worse for each country?
Prepare the journal entries to record the transactions above : Furtastic manufactures imitation fur garments. On June 1, 2016, Furtastic made a sale to Willett's Department Store under terms that require Willett to pay $150,000 to Furtastic on June 30, 2016. In a separate transaction on June 15, 2016, Furtast..
How much can you profit from first small amount of arbitrage : Consider the numerical example that we used to demonstrate the thinking of Adam Smith.- How much can you profit from your first small amount of arbitrage?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  List all the data for all fields of the table the user

List all the data for all fields of the table the user selects.

  As a network administrator for a company you want to

consider the following scenarioas a network administrator for a company you want to configure an ip route between two

  Client of yours is concerned about external intrusion

Client of yours is concerned about external intrusion on their corporate network, and those inside their environment that they seek to fire! They've heard about firewalls and they need your professional opinion as to whether, with the implementation ..

  Write a program that simulates an xor operation

For example, if the input is 1011, then the output will be 1. You can assume that the input word is guaranteed to contain only 0s and 1s.

  Estimate the height of a building

An observer wants to estimate the height of a building. At herfirst measurement, the angle of elevation to the top of thebuilding is 45 degrees. She walks 300 feet closer to the building and determines the angle of elevation to be 60 degrees

  Modify the main method of the transactions class

Modify the main method of the Transactions class to demonstrate this new capability.

  Force p that will cause impending motion

Determine the smallest force P that will cause impending motion.

  Adobe connect technology within the course area

Based on the topic and outline from previous units, you will make a formal oral presentation to your instructor and peers. You will be required to present for 10-12 minutes using the Adobe Connect technology within the course area. Specifically, y..

  Determine the largest angle ? so that the cord

The cylinder at E has a mass of 10 kg, and the coefficient of static friction between the cord and the peg is µs =01

  Assessing security risks for determining infrastructure

As part of project to assess security risks for determining infrastructure, you have found that other managers often have various ideas on severity and levels of risk.

  Find the pmf of y the number of points scored in a 1

Find the PMF of Y, the number of points scored in a 1

  Base the preliminary assessment on the software

What do you need to do. What do you base the preliminary assessment on. the platform. the software. the user's Internet browsing history. other

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd