12,565 views
3 votes
3 votes
Consider schedules S3, S4, and S5 below. Determine whether each schedule is
strict, cascadeless, recoverable, or nonrecoverable. (Determine the strictest
recoverability condition that each schedule satisfies.)
S3: r1 (X); r2 (Z); r1 (Z); r3 (X); r3 (Y); w1 (X); c1; w3 (Y); c3; r2 (Y); w2 (Z);
w2 (Y); c2;
S4: r1 (X); r2 (Z); r1 (Z); r3 (X); r3 (Y); w1 (X); w3 (Y); r2 (Y); w2 (Z); w2 (Y); c1;
c2; c3;
S5: r1 (X); r2 (Z); r3 (X); r1 (Z); r2 (Y); r3 (Y); w1 (X); c1; w2 (Z); w3 (Y); w2 (Y);
c3; c2;

1 Answer

Best answer
2 votes
2 votes

Recoverable Schedule: The transaction which does uncommitted read operation should not commit before the commit/rollback of the transaction which updated that data item.
Non-recoverable Schedule: Opposite of recoverable schedule
Cascadeless Schedule: No uncommitted read is allowed.
Strict Recoverable Schedule: Read/Write(WR,WW) operations are not allowed by any other transactions until the transaction commit/rollback which updated a data item.

S3: recoverable, cascadeless, strict recoverable
S4: there is a dirty read between W3(Y) and R2(Y) hence not cascadeless, Not recoverable because T2 is committing before T3
S5: No dirty read hence recoverable and cascadeless shecdule but not strict recoverable because WW exists between W3(Y) and W2(Y)

selected by

Related questions

0 votes
0 votes
1 answer
2
Prince Sindhiya asked Sep 12, 2018
582 views
Consider the entity type DEPENDENT, related to EMPLOYEE, which is used to keeptrack of the dependents of each employee via a 1:N relationship,(assume dependent is weak en...
0 votes
0 votes
1 answer
3
Doraemon asked Apr 20, 2019
291 views
previous value of X=9Sf : w1(X, 5); w2(X, 8); a1;cascadeless schedu;e . what problem will the schedule face??
0 votes
0 votes
1 answer
4
harveen singh asked Dec 18, 2016
395 views
a) every column that appears in group by clause must appear in select statement.b) every column that appears in select statement must appear in group by clauseout of thes...