Question: Suppose that a DBMS recognizes increment, which increments an integer- valued object by 1, and decrement as actions, in addition to reads and writes. A
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.)
Step by Step Solution
3.31 Rating (177 Votes )
There are 3 Steps involved in it
The answer to each question is given below 1 Take the following two transactions as example T1 Incre... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
960-C-S-D (2485).docx
120 KBs Word File
