What is the two-phase locking protocol

Assignment Help Database Management System
Reference no: EM1372382

Database Systems

1. List the ACID properties. Explain the usefulness of each.

2. Consider the following two transactions:
T13: read(A);
read(B);
if A = 0 then B := B + 1;
write(B).
T14: read(B);
read(A);
if B = 0 then A := A + 1;
write(A).
Let the consistency requirement be A = 0 or B = 0, with A = 0 and B = 0 as the initial values.
a. Show that every serial execution involving these two transactions preserves the consistency of the database.
b. Show a concurrent execution of T13 and T14 that produces a nonserializable schedule.
c. Is there a concurrent execution of T13 and T14 that produces a serializable schedule?

3. What is the two-phase locking protocol? What is the strict two-phase locking protocol? What is the rigorous two-phase locking protocol? What benefit does strict two-phase locking protocol provide? What benefit does rigorous two-phase locking protocol provide?

4. Consider the log in Figure. Suppose there is a crash just before the <T0 abort> log record is written out. Explain what would happen during recovery.

252_Database Systems.png

Reference no: EM1372382

Questions Cloud

What would happen to profits company makers : Would company benefit by advertising in this perfectly competitive market. What would happen to price of toothpaste, would it rise or fall. What would happen to profits company makers.
Create modular program to enter monthly costs : Create modular program which ask user to enter monthly costs for the following expenses incurred from operating his or her automobile: loan payment, insurance, gas, oil, tires, and maintenance.
Calculate current industry output : The current fare market price of $45 can not be increased. Compute current industry output and the market share of each airline
How to assume the weight is evenly distributed : A novice skier, starting from rest, slides down a frictionless 34° incline whose vertical height is 128 m. How fast is she going when she reaches the bottom.
What is the two-phase locking protocol : What is the two-phase locking protocol and what is the strict two-phase locking protocol? What is the rigorous two-phase locking protocol? What benefit does strict two-phase locking protocol provide? What benefit does rigorous two-phase locking pr..
Problems of global poverty : What role can U.S. citizens play in attempting to ease the problems of global poverty? How would the answer of a modernization theorist to this question differ from the answer that might be given by a dependency theorist?
In what did south have a comparative advantage : IN what did South have a comparative advantage. Did Civil War change any opportunity costs in South. Did opportunity cost of everything rise. Or did items cost less.
How fast should the air flow over upper surface of the wing : The car now stops, and the four people get out. By how much does the car body rise on its suspension owing to this reduce in weight.
Explain modifications to software development process : Then he asks you if they require to make any modifications to their software development process. Name three big problems with M. & M.'s process. How would you fix those problems?

Reviews

Write a Review

Database Management System Questions & Answers

  Explain role of a database administrator

Explain the role of a database administrator,the tasks performed by this role and why this role is important in Database Management.

  Using join sort results alphabetically by customer name

Using Join, list the items each customer ordered where the billing_price was lower than the item price (item, billing_price, and price). Sort the results alphabetically by customer name.

  Produce budget reports for department at university

Consider system which produces budget reports for department at university. For whichever system you select, answer the following design questions. Who will use output?

  Method to change column name

Hhow can you change column name or what is a different way to write statement in SQL so it displays the amount column as money.

  Create database to keep information of movies

Create a database for Ray. He is interested in movies and wants to keep information on movies, actors, and directors in a database. The only user is Ray, and he needs to produce reports.

  Find average number of books borrowed from database table

Find the average number of books borrowed per member. Take into account that if a member does not borrow any books, then that member does not appear in the borrowed relation at all.

  Design scheme for determining wine bottle which poisoned

Design a scheme for determining exactly which one of the wine bottles was poisoned in just one month's time while expending O(logn) taste testers.

  Create entity-relationship diagram for bookstore database

Create Entity-Relationship diagram for a bookstore database, that maintains information about books, professional journals, their authors, and publishers.

  Explain issues to convert relationship for new cardinality

Using example of vehicles and drivers, explain issues to convert relationship for new cardinality including new relationships and attributes for the tables.

  Triggers important in database systems

What are triggers used for, and why are they important in database systems? Provide an example of a situation where a trigger would be appropriate.

  Write benefits of using dbms to manage data in program

Describe briefly what are the main benefits of using DBMS to manage data in program applications involving extensive data access.

  Application important part of security model for databases

Using Internet as the research tool for extra information not presented in text, describe why application roles are important part of the security model for databases.

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