Conflict versus view serializability

December 4, 2026 · Team EasyExamNotes · 2 min read (est.) · 0 comments

Share on WhatsApp

← RGPV CS-502-CBGS DBMS June 2020 solved question paper

RGPV CS-502-CBGS | June 2020 | Q5(a) | 7 marks

Question: Differentiate conflict serializability and view serializability with suitable example.

Answer

Conflict versus view serializability
Conflict versus view serializability

Serializability ensures that concurrent execution has the effect of some serial transaction order. Conflict and view serializability are two different equivalence criteria.

Two operations conflict when they belong to different transactions, access the same data item and at least one is a write. Two schedules are conflict equivalent if they contain the same operations and preserve the order of every conflicting pair. A schedule is conflict serializable if its precedence graph is acyclic.

View equivalence requires three conditions: each read of an initial value remains an initial read; each read obtains its value from the same transaction’s write; and the final writer of each item is the same. A schedule is view serializable if it is view equivalent to a serial schedule.

Example: Consider S=w1(X), w2(X), w1(X), c2, c1, where T1 has two writes and T2 has one write. The first w1(X) precedes w2(X), creating T1→T2. The w2(X) precedes the second w1(X), creating T2→T1. The cycle means S is not conflict serializable. However, there are no reads, and T1 is the final writer of X. The serial order T2 followed by T1 has the same final writer and satisfies all view-equivalence conditions. Thus S is view serializable. The writes without preceding reads are blind writes.

Every conflict-serializable schedule is view serializable, but the reverse is not always true. Conflict serializability is easier to test using graph traversal. General view-serializability testing is NP-complete. Practical concurrency-control protocols commonly guarantee conflict serializability because it is easier to enforce.

Criterion Conflict View
Preserves Conflicting operation order Reads-from and final writers
Test Acyclic graph Serial view equivalence
Scope Narrower Broader

← RGPV CS-502-CBGS DBMS June 2020 solved question paper

Discussion

Ask a question, share your thoughts or report an error.

Sign in to participate in the discussion.

Join the discussion