Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Homework (1) Question1: Consider the following schedule S of transactions T1, T2, T3 and T4. S=R2(Y); R2(X); C3; Wi(X); W2(Y); R (Z); C2; R4(X); R4(Y);

image text in transcribed

image text in transcribed

Homework (1) Question1: Consider the following schedule S of transactions T1, T2, T3 and T4. S=R2(Y); R2(X); C3; Wi(X); W2(Y); R (Z); C2; R4(X); R4(Y); Wi(Z); C1; C4; Find out which of the following statements are true (T) or false (F). Justify your answer. S is conflict serializable S is recoverable S is cascadeless schedule a) i-T, ii-T, iii-F b) i-T, ii-F, iii-F c) i-F, ii-T, 111-T d) i-T, ii-F, 111-T Question 2: Does the following partial schedule S obey two phase locking? If it does not, change it to obey two phase locking. T1 T2 Lock-X(B) Read(B) Write (B) Lock-X(A) Lock-S(A) Read(A) Unlock(A) Lock-S(B) Read(B) Unlock(B) Unlock(B) Read(A) Write(A) Unlock(A) Question 3: Given the following log: [Start Ti] [T1, B, 20, 25] [Start T2] [check point] [T2, C, 70, 60] [T2 Commit] [Start T3] [T3, A, 50, 40] 1. Which transaction IDs are in the undo list and which are in the redo list? 2. What are the values of A, B, and C after the algorithm has finished assume that the log entry is written as [Tid, Item, Old value, New value]? Question 4: 1. Provide an example for dirty read (temporary update) problem? 2. What is meant by term well-formed transaction

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

DB2 11 The Ultimate Database For Cloud Analytics And Mobile

Authors: John Campbell, Chris Crone, Gareth Jones, Surekha Parekh, Jay Yothers

1st Edition

1583474013, 978-1583474013

More Books

Students also viewed these Databases questions

Question

1 for suggestions). Be specific.

Answered: 1 week ago