GATE Exam  >  GATE Questions  >  What is difference between recoverable schedu... Start Learning for Free
What is difference between recoverable schedule, cascadeless schedule and strict schedule?
Most Upvoted Answer
What is difference between recoverable schedule, cascadeless schedule ...
Difference between Recoverable Schedule, Cascadeless Schedule, and Strict Schedule

Recoverable Schedule:

A recoverable schedule is a type of schedule in which if a transaction fails or is aborted, it is still possible to recover the database to a consistent state. In other words, a recoverable schedule ensures that no updates are permanently stored in the database until all transactions have committed successfully.

Key points:
- In a recoverable schedule, the actions of an aborted transaction are undone by rolling back the changes made by that transaction.
- It guarantees that all committed transactions' updates are stored permanently in the database, even if a failure occurs.
- Recoverable schedules are achieved by utilizing two-phase locking or timestamp ordering techniques.

Cascadeless Schedule:

A cascadeless schedule is a type of schedule that avoids cascading rollback. Cascading rollback occurs when a transaction is rolled back, leading to other transactions being rolled back as well, which can result in a series of rollbacks throughout the system.

Key points:
- In a cascadeless schedule, if a transaction T1 reads a data item previously modified by an uncommitted transaction T2, T1 must wait until T2 commits or aborts before proceeding.
- Cascadeless schedules prevent the propagation of updates made by uncommitted transactions.
- These schedules are achieved by enforcing strict rules on the order in which transactions can read and write data items.

Strict Schedule:

A strict schedule is a type of schedule that ensures that the final state of the database after executing a set of transactions is the same as if the transactions were executed serially in some order.

Key points:
- In a strict schedule, the order in which transactions are executed does not affect the final state of the database.
- Strict schedules guarantee isolation and consistency by enforcing a strict order of execution among transactions.
- To achieve strict schedules, concurrency control mechanisms like serializability and strict two-phase locking are employed.

Summary:

- A recoverable schedule ensures that the database can be recovered to a consistent state even if a transaction fails or is aborted.
- A cascadeless schedule prevents cascading rollbacks by ensuring that a transaction waits until an uncommitted transaction finishes before reading its modified data.
- A strict schedule guarantees that the final state of the database is the same as if the transactions were executed serially, regardless of the order in which they are actually executed.
Community Answer
What is difference between recoverable schedule, cascadeless schedule ...
Strict schedules
 ->  A schedule is strict if: " A value written by a transaction T is not read or overwritten by other transactions until T either aborts or commits.
-> Strict schedules are recoverable and cascades.
Cascades schedules
-> Even if the schedule is recoverable, several transactions may need to be rolled back to recover correctly.
-> Cascading Rollback: a single transaction failure leading to a series of rollbacks

Cascades schedule: For any transactions Ti and Tj: if Tj reads data written by Ti, then Ti commits before read operation of Tj.
-> On a cascadeless schedule, a transaction T2 cannot read a value a if a transaction T1 wrote a before that and didn't commit.
-> On a strict schedule T2 also wouldn't be able to write a after  T1 wrote it (even if it read a before T1 wrote it).
If you read carefully, the definition of strict says "not read or overwritten". That's the difference.
 from the Wikipedia page on the subject:

CASCADING ROLLBACK

An uncommitted transaction has to be rolled back because it read an item from a transaction that failed. This is the case for Se.
This form of rollback is undesirable, since it can lead to undoing a significant amount of work. It is desirable to restrict the schedules to those where cascading rollbacks cannot occur.
A schedule is said to avoid cascading rollback if every transaction in the schedule reads only items that were written by committed transactions. This guarantees that read items will not be discarded.

STRICT SCHEDULE
Transactions can neither read nor write an item X until the last transaction that wrote X has committed or aborted.
Strict schedules simplify the recovery process.
The process of undoing a write (X) operation of an aborted transaction is simply to restore the before image, the old-value for X.
Though this always works correctly for strict schedules, it may not work for recoverable or cascadeless schedules.
Explore Courses for GATE exam
Question Description
What is difference between recoverable schedule, cascadeless schedule and strict schedule? for GATE 2025 is part of GATE preparation. The Question and answers have been prepared according to the GATE exam syllabus. Information about What is difference between recoverable schedule, cascadeless schedule and strict schedule? covers all topics & solutions for GATE 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for What is difference between recoverable schedule, cascadeless schedule and strict schedule?.
Solutions for What is difference between recoverable schedule, cascadeless schedule and strict schedule? in English & in Hindi are available as part of our courses for GATE. Download more important topics, notes, lectures and mock test series for GATE Exam by signing up for free.
Here you can find the meaning of What is difference between recoverable schedule, cascadeless schedule and strict schedule? defined & explained in the simplest way possible. Besides giving the explanation of What is difference between recoverable schedule, cascadeless schedule and strict schedule?, a detailed solution for What is difference between recoverable schedule, cascadeless schedule and strict schedule? has been provided alongside types of What is difference between recoverable schedule, cascadeless schedule and strict schedule? theory, EduRev gives you an ample number of questions to practice What is difference between recoverable schedule, cascadeless schedule and strict schedule? tests, examples and also practice GATE tests.
Explore Courses for GATE exam

Top Courses for GATE

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev