Recoverable, Cascadeless and Strict Schedules in DBMS: A Worked Guide

Learn how recoverability, cascadelessness and strictness differ by tracing read-from edges, commit order and uncommitted writes across three worked schedules.

KnowledgeGate Team

Exam prep & CS education

Updated 3 Dec 20265 min read
Recoverable, Cascadeless and Strict Schedules in DBMS: A Worked Guide

Recoverable, cascadeless and strict schedules all concern failure safety, but each tests a different moment in a schedule. Recoverability checks commit order after a read dependency, cascadelessness prevents dirty reads, and strictness also prevents dirty writes. With X = 100, three timelines isolate commit order, dirty reads and dirty writes so each property can be classified independently.

Read the schedule before naming its property

A transaction schedule interleaves operations while preserving each transaction's internal order. Here, r1(X=100) means T1 reads 100, w1(X=80) means T1 writes 80, and c1 or a1 means T1 commits or aborts.

Initially, X = 100. In the read-and-update schedules, T1 subtracts 20, so 100 - 20 = 80. If T2 reads 80, it adds 15, so 80 + 15 = 95. In the dirty-write schedule, T2 blind-writes 95 without reading X.

Before applying labels, ask: who supplied each value read, did that writer finish before the reader committed, and did another transaction touch an item whose latest writer was uncommitted? See Transactions and Concurrency Control in DBMS for wider ACID, serializability and locking context.

Recoverable schedules: the writer must commit before the reader

If T2 reads the version written by T1, it creates a read-from dependency T1 -> T2. Recoverability requires c1 before c2. The read may precede c1; only commit order is constrained.

In S_A = r1(X=100), w1(X=80), r2(X=80), w2(X=95), c1, c2, r2 sees the 80 produced by w1, so the edge is T1 -> T2. Since c1 precedes c2, S_A is recoverable. It is not cascadeless because r2 reads while T1 is uncommitted.

The order r1(X=100), w1(X=80), r2(X=80), w2(X=95), c2, a1 is unrecoverable: T2 commits a result derived from T1, then T1 aborts. If a1 occurs before either transaction commits, T2 must also abort. That is a cascading rollback, not an unrecoverable result.

Cascadeless schedules: read only committed versions

If T2 will read a value written by T1, cascadelessness requires c1 before r2(X). This prevents a dirty read, so an abort of T1 cannot force T2 to undo work derived from uncommitted 80.

Rewrite the sequence as S_C = r1(X=100), w1(X=80), c1, r2(X=80), w2(X=95), c2. Now T2 reads committed 80, calculates 80 + 15 = 95, writes 95, and commits.

S_C is cascadeless and recoverable. Every cascadeless schedule is recoverable because the writer commits before the read, and thus before a later reader commit. The reverse is false, as S_A shows. Cascadelessness does not block every conflict; its test here is the absence of dirty reads.

Strict schedules: block reads and writes after an uncommitted write

Strictness applies per data item. After w1(X=80), no other transaction may read or write X until T1 commits or aborts. Work on unrelated items may continue.

Take S_B = r1(X=100), w1(X=80), w2(X=95), c2, a1. T2 blind-writes 95, so there is no dirty read. The schedule is cascadeless and recoverable because no read-from dependency exists. It is not strict: w2(X=95) overwrites an uncommitted version. If undoing T1 restores its before-image 100, it can overwrite committed 95. This is the dirty-write hazard.

Return to S_C. T2 does not touch X between w1(X=80) and c1, and nobody touches X between w2(X=95) and c2. It is strict. The containment is one-way: strict => cascadeless => recoverable.

Three nested boxes compare recoverable, cascadeless, and strict schedules, including S_A's dirty read, S_B's dirty write, and S_C's wait for c1.

Worked classification: audit the same value three times

Keep the arithmetic and the dependency direction separate while classifying each row.

Schedule

Read-from and value audit

Recoverable?

Cascadeless?

Strict?

Strongest correct label

S_A = r1(X=100), w1(X=80), r2(X=80), w2(X=95), c1, c2

T2 reads 80 from T1, then computes 80 + 15 = 95

Yes, c1 < c2

No, r2 < c1

No, r2 and w2 touch X before c1

Recoverable only

S_B = r1(X=100), w1(X=80), w2(X=95), c2, a1

T2 blind-writes 95; there is no read-from edge

Yes, vacuously

Yes, no dirty read occurs

No, w2 < a1

Cascadeless, not strict

S_C = r1(X=100), w1(X=80), c1, r2(X=80), w2(X=95), c2

T2 reads committed 80, then computes 95

Yes

Yes

Yes

Strict

Use the same four passes every time:

  1. Mark the latest writer seen by each read.

  2. Compare the writer and reader commit positions.

  3. Ask whether a read saw an uncommitted version.

  4. Ask whether another read or write touched an item after an uncommitted write.

Stop at the strongest property that survives. In S_A, commit order passes, but the dirty read fails the next test. In S_B, no read-from edge exists, so recoverability holds vacuously and no dirty read violates cascadelessness. Its dirty write fails strictness. In S_C, all checks pass.

The no-read case matters because recoverability and cascadelessness follow read-from edges. Strictness catches dirty writes. Also, r1(X=100) reads the initial value before any transaction writes X, so it is not a dirty read.

Three-row timeline compares schedules S_A, S_B, and S_C, showing reads and writes of 100, 80, and 95, with commits, abort, and T2 waiting for c1.

Traps that flip the classification

  • Checking eventual commit, not commit order. For T1 -> T2, c1 must precede c2. The order c2, c1 is unrecoverable even if both commit.

  • Treating recoverability and serializability as synonyms. In w1(X=80), r2(X=80), c2, c1, the conflict graph has only T1 -> T2, so the schedule is conflict-serializable. It is still unrecoverable because c2 < c1.

  • Confusing a property with a protocol. Strictness describes an observed history. Strict two-phase locking is a protocol that can generate one, but the history does not prove which protocol generated it.

  • Checking a transaction instead of the item. After uncommitted w1(X=80), T2 may operate on unrelated Y, but a strict schedule prevents it from reading or writing X.

  • Calling a blind write a dirty read. w2(X=95) in S_B reads nothing. It violates strictness, not cascadelessness. Keep the audits separate.

How exam-style questions test these rules

Questions may ask for the strongest property, a recoverable order, transactions that must roll back after an abort, or the difference between dirty reads and writes.

For a rapid check, take w1(A=40), r2(A=40), w2(B=70), c1, c2. The dependency is T1 -> T2, and c1 < c2, so it is recoverable. Since r2 < c1, it has a dirty read and is neither cascadeless nor strict. If a1 replaces c1, T2 must abort before committing because its B=70 work follows the read of uncommitted A=40.

Continue with DBMS Transaction MCQs for adjacent solved practice and the GATE Test Series for timed practice. KnowledgeGate has 20+ practice questions for this subtopic. For official frequency or weightage, check the current exam paper and notification.

The short version and the next step

Use three questions as a memory card. Did a reader commit before its writer? Did a reader see uncommitted data? Did another transaction read or write an item after an uncommitted write? These test recoverable, cascadeless and strict schedules in that order.

Cover the labels in the table and reclassify S_A, S_B and S_C from operation order alone. For the wider syllabus route, continue with GATE CS Exam Preparation Courses & Test Series. Draw read-from arrows before judging any commit order.