All Exams Test series for 1 year @ ₹349 only
Question

Consider the following schedule S.

T1T2T3T4Timestamp
R(X)R(Y)t1
W(X)W(Y)t2
R(Y)R(X)t3
W(Y)W(X)t4
R(X)t5
W(X)t6

R(X) denotes read operation on data item X by transaction Ti.

W(X) denotes write operation on data item X by transaction Ti.

Choose the correct execution order for the above schedule S.

This question was previously asked in
UGC NET 2022 Computer Science and Applications Question Paper (15-Mar-2023) (Shift 1)
The correct answer is

T2-T4-T3-T1

A schedule is conflict serializable when its precedence graph is acyclic; a topological order of that graph gives the equivalent serial execution order. Two operations conflict when they belong to different transactions, use the same item and at least one is a write.

Step 1 — item X: T2 reads and writes X at t1–t2, T4 reads and writes X at t3–t4, T3 reads and writes X at t5–t6. Conflicts: T2 → T4, T2 → T3 and T4 → T3.

Step 2 — item Y: T3 reads and writes Y at t1–t2, T1 reads and writes Y at t3–t4. Conflict: T3 → T1.

Step 3 — the precedence graph has edges T2→T4, T2→T3, T4→T3, T3→T1; it has no cycle, so S is conflict serializable.

Step 4 — T2 has no incoming edge and comes first; T4 must precede T3; T3 must precede T1. The only topological order is T2, T4, T3, T1.

Orders starting with T3 or T4 put a transaction before T2 although T2 wrote X before them, and the order T2-T3-T1-T4 places T3 before T4 although T4 wrote X before T3 read it.

T2-T4-T3-T1 option is correct.

Was this answer helpful?

Similar Questions

  1. Consider following schedules involving two transactions :

    S1 : r1(X); r1(Y); r2(X); r2(Y); w2(Y); w1(X)

    S2 : r1(X); r2(X); r2(Y); w2(Y); r1(Y); w1(X)

    Which of the following statement is true ?

  2. Consider the transactions T1, T2, T3 and the schedules S1 and S2 given below.

    T1 : r1(x); r1(z); w1(z)

    T2 : r2(y); r2(z); w2(z)

    T3 : r3(y); r3(x); w3(y)

    S1 : r1(x); r3(y); r3(x); r2(y); r2(z); w3(y); w3(z);

            r1(z); w1(x); w1(z)

    S2 : r1(x); r3(y); r2(y); r3(x); r1(z); r2(z); w3(y);

            w1(x); w2(z); w1(z)

    Which one of the following statements about the schedules is TRUE ?


Important Questions from Serializability of Schedules - Teaching

  1. Suppose a database schedule 5 involves transactions T 1, T 2, .............T nConsider the precedence graph of S with vertices representing the transactions and edges representing the conflicts. If S is serializable, which one of the following orderings of the vertices of the precedence graph is guaranteed to yield a serial schedule ?

  2. Consider the following four schedules due to three transactions (indicated by the subscript) using read and write on a data item X, denoted by r(X) and w(X) respectively. Which one of them is conflict serializable ?

    S 1 : r 1(X); r 2(X); w 1(X); r 3(X); w 2(X)

    S2: r 2(X); r 1(X); w 2(X); r 3(X); w 1(X)

    S 3 : r 3(X); r 2(X); r 1(X); w 2(X); w 1(X)

    S4 : r 2(X); w 2(X); r 3(X); r 1(X); w 1(X)

  3. Consider following schedules involving two transactions :

    S1 : r1(X); r1(Y); r2(X); r2(Y); w2(Y); w1(X)

    S2 : r1(X); r2(X); r2(Y); w2(Y); r1(Y); w1(X)

    Which of the following statement is true ?

  4. Consider the transactions T1, T2, T3 and the schedules S1 and S2 given below.

    T1 : r1(x); r1(z); w1(z)

    T2 : r2(y); r2(z); w2(z)

    T3 : r3(y); r3(x); w3(y)

    S1 : r1(x); r3(y); r3(x); r2(y); r2(z); w3(y); w3(z);

            r1(z); w1(x); w1(z)

    S2 : r1(x); r3(y); r2(y); r3(x); r1(z); r2(z); w3(y);

            w1(x); w2(z); w1(z)

    Which one of the following statements about the schedules is TRUE ?

  5. Consider the following statements:

    Statement I: Conservative 2 PL is a deadlock-free protocol.

    Statement II: Thomas's write rule enforces conflict serializability.

    Statement III: Timestamp ordering protocol ensures serializability based on the order of transaction timestamps.

    Which of the following is correct?

Need Expert Advice?
Upcoming Exams
CTET
December 12, 2026
WB SET
December 13, 2026
CBSE UGC NET
December 14, 2026
CSIR UGC NET
December 19, 2026
Test Series
UGC NET img
Teaching
UGC NET (Paper 2) December 2026 Mock Test Series
799 Tests 2 Tests Free
299 Attempts
4.4(45)
English, Hindi
More Questions from UGC NET

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App