Question
For each of the schedules of transactions T1, T2, and T3 below: c) r1(A);r2(B);r3(C);r1(B);r2(C);r3(D);w1(C);w2(D);w3(E); d) r1(A);r2(B);r3(C);r1(B);r2(C);r3(D);w1(A);w2(B);w3(C); i) Insert shared and exclusive locks, and insert unlock
For each of the schedules of transactions T1, T2, and T3 below:
c) r1(A);r2(B);r3(C);r1(B);r2(C);r3(D);w1(C);w2(D);w3(E);
d) r1(A);r2(B);r3(C);r1(B);r2(C);r3(D);w1(A);w2(B);w3(C);
i) Insert shared and exclusive locks, and insert unlock actions. Place a shared lock immediately in front of each read action that is not followed by a write action of the same element by the same transaction. Place an exclusive lock in front of every other read or write action. Place the necessary unlocks at the end of every transaction.
ii) Tell what happens when each schedule is run by a scheduler that supports shared and exclusive locks.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started