Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following concurrency control protocols: 2 PL , Strict 2 PL , Conservative 2 PL , Timestamp without the Thomas Write Rule, Times tamp

Consider the following concurrency control protocols: 2PL, Strict 2PL, Conservative 2PL, Timestamp without the Thomas Write Rule, Times tamp with the Thomas Write Rule, and Multiversion.
a. For each of the following schedules, state which of these protocols allows itthat is, allows the actions to occur in exactly the order shown.
b. Give reasons for at least two "No" answers if they were found for each concurrency technique.
(Assume that the timestamp of transaction Ti is 'i.)
1. R1(X), R2(X), W1(X), W2(X)
2. W1(X), R2(Y), R1(Y), R2(X)
3. R1(X), R1(Y), W1(X),R2(Y), W3(Y), W1(X), R2(Y)
4. R1(X), W2(X), W1(X), T2:Abort, T1:Commit
5. R1(X), R2(Y), W3(X), R2(X), R1(Y)
6. R1(X), W2(X), W1(X), T2:Commit, T1:Commit
7. W1(X), R2(X), W1(X), T2:Commit, T1:Commit
8. W1(X), R2(X), W1(X), T2:Commit, T1:Abort
9. W1(X), R2(X), W1(X), T2:Abort, T1:Commit
10. R2(X), W3(X), T3:Commit, W1(Y), T1:Commit, R2(Y), W2(Z), T2:Commit
11. R1(X), W2(X), T2:Commit, W1(X), T1:Commit, R3(X), T3:Commit
12. R1(X), W2(X), W1(X), R3(X), T1:Commit, T2:Commit, T3:Commit
Answer ( a) by filling the table below:
2PL S-2PL C-2PL TSwo/Twr TSw/Twr Multiv
1(example) No No No No No No
2
3
4
5
6
7
8
9
10
11
12
Note the following abbreviations. S-2PL: Strict 2PL; C-2PL: Conservative 2PL; TS wo/ Twr: Timestamp without Thomas Write Rule; TSw/ Twr : Timestamp withThomas Write Rule; MultiversionTSo :Multiv.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

Students also viewed these Databases questions

Question

1. Identify six different types of history.

Answered: 1 week ago

Question

2. Define the grand narrative.

Answered: 1 week ago

Question

4. Describe the role of narratives in constructing history.

Answered: 1 week ago