Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following schedule of actions, listed in the order they are submitted to the DBMS: Schedule S1: r1(X),r2(Y),r1(Z),r2(X),w2(X),r2(Z),r3(Y),w2(Z),w1(Y),w3(Y),c3,r1(Y),w2(Y),c2,c1. Schedule S2: r2(X),w1(Y),w2(Y),w1(X),w3(Z),c1,w2(X),c2,w3(X),c3. For each of

image text in transcribed

Consider the following schedule of actions, listed in the order they are submitted to the DBMS: Schedule S1: r1(X),r2(Y),r1(Z),r2(X),w2(X),r2(Z),r3(Y),w2(Z),w1(Y),w3(Y),c3,r1(Y),w2(Y),c2,c1. Schedule S2: r2(X),w1(Y),w2(Y),w1(X),w3(Z),c1,w2(X),c2,w3(X),c3. For each of the following concurrency control mechanisms, describe how the concurrency control mechanism handles the schedule. Assume that the timestamp of transaction Ti is i. For lock-based concurrency control mechanisms, add lock and unlock requests to the above schedule of actions as per the locking protocol. The DBMS processes actions in the order shown. If a transaction is blocked, assume that all its actions are queued until it is resumed; the DBMS continues with the next action (according to the listed schedule) of an unblocked transaction. Q1. Basic 2PL with protocol based on a timestamp for deadlock avoidance (use wait-die policy) Q2. Strict 2PL with protocol based on a timestamp for deadlock avoidance (use wound-wait policy) Q3. Rigorous 2PL with protocol based on a timestamp for deadlock avoidance (use wait-die policy) Q4. Rigorous 2PL with protocol based on a timestamp for deadlock avoidance (use wound-wait policy) Q5. Rigorous 2PL with protocol based on a deadlock detection (Use wait-for-graph to deal with deadlock) Q6. Basic Timestamp Ordering (TO) protocol Q7. Strict Timestamp Ordering protocol Q8. Timestamp Ordering using Thomas's Write Rule (TWR) Q9. Multi-version Timestamp Ordering protocol Q10. Validation (Optimistic) Concurrency Control Technique (Use defer the validation until a later time when the conflicting transactions have finished)

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

Database Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

1292107634, 978-1292107639

More Books

Students also viewed these Databases questions