Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise 5: Consider the schedule shown below. a) Is the schedule conflict serializable? Yes No If yes, give the equivalent serial schedule b) If Tz
Exercise 5: Consider the schedule shown below. a) Is the schedule conflict serializable? Yes No If yes, give the equivalent serial schedule b) If Tz aborts after write(Y), which other transactions will be rolled back? c) If Ti aborts after write(X), which other transactions will be rolled back? d) Draw the wait-for graph that results from this schedule if all locks are only exclusive-locks (lock- x), no locks are released and the execution process runs to the point of lock-x(Y) in T1. T. T, TE Wait-for Graph e) Add lock-s(), lock-x() and unlock() instructions to the schedule below according to strict 2PL. Tz T T4 read(X) write(X) read() read(Y) write(Y) write(X) read() write(Y) Exercise 5: Consider the schedule shown below. a) Is the schedule conflict serializable? Yes No If yes, give the equivalent serial schedule b) If Tz aborts after write(Y), which other transactions will be rolled back? c) If Ti aborts after write(X), which other transactions will be rolled back? d) Draw the wait-for graph that results from this schedule if all locks are only exclusive-locks (lock- x), no locks are released and the execution process runs to the point of lock-x(Y) in T1. T. T, TE Wait-for Graph e) Add lock-s(), lock-x() and unlock() instructions to the schedule below according to strict 2PL. Tz T T4 read(X) write(X) read() read(Y) write(Y) write(X) read() write(Y)
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