• edited by
2,789 views
0 0 votes

Which of the following is/are true?

I. Every strict schedule is cascade less schedule and recoverable schedule

II. Every cascade less schedule is recoverable schedule

III. Every cascading rollback schedule is recoverable schedule

IV. Every cascading rollback schedule is a strict schedule

V. Every recoverable schedule is cascading rollback schedule

  1. All of the above
  2. I, II, and IV only
  3. II, III, IV, and V only
  4.  I, II, and III only

2 Answers

0 0 votes

If two transactions(T1 and T2) uses the same data,

T1(WRITE) --> T2(READ)       #T2 reads the data written by T1

Cascading roll back ensures recoverability by rolling back T2 when T1 rollback.(III option is true)

cascadeless schedule ensures one transaction(T2) should come after first transaction(T1) commits.

Hence Cascade less schedule is also recoverable and  ensures no roll back of 2nd transaction(T2) as it was postponed.(II option is true)

Strict schedule is more strict which does not allow even,

T1(WRITE) --> T2(WRITE)     #T2 wants to write T1's written data

T1(READ) --> T2(WRITE)       #T2 wants to write T1's read data

then T2 should come after T1 commits.(I option is true)

option iv: wrong as cascading does not happen in strict schedule.

option v: Not neccessary.

 

Answer: D

• edited by
Position:
Show:

Related questions

0 0 votes
0 0 answers
455
455 views
firki lama asked Dec 27, 2016
455 views
True/false Every cascading rollback schedule is recoverable schedule.
5 5 votes
2 2 answers
1.6k
1.6k views
smartmeet asked Nov 30, 2016
1,556 views
Assume there are n transactions$:T_{1},T_{2},.,T_{n}.$ Every transaction writes value of $X$ that is read by its successive transaction like $T_{1}$ writes value of $X$ t...
1 1 vote
1 1 answer
3.5k
3.5k views
aditi19 asked May 28, 2019
3,516 views
how many tables are required?
0 0 votes
0 0 answers
2.6k
2.6k views
aditi19 asked May 28, 2019
2,637 views
A' is set of all possible schedules'C' is set of all possible schedules that are guaranteed to produce a correct final result'S' is the set of all serializable schedules'...