Concurrency Control
Concurrency Control
(a) S is non-recoverable
(b) S is recoverable, but has a cascading abort
(c) S does not have a cascading abort
(d) S is strict
Serializability
A Concurrent schedule that when executed, if it
is equivalent to some serial schedule is said to be a
serializable schedule.
1. Conflict Serializability:
A schedule is said to be conflict serializable if it
is conflict equivalent to some serial schedule
Two schedules S1 and S2 are said to be conflict
equivalent if and only if all the conflict operations in
both the schedules are same.
The conflict operations are operations on same
data item by the different transactions in which at
least one operation is a write operation.
Previous GATE Question:
Previous GATE Question:
GATE-2024
Previous GATE Question: GATE-2024 (DA)
Previous GATE Question:
Which one of the following statements is
Q. Consider the following schedule S of CORRECT? [GATE-14-Set2]
transactions T1, T2, T3, T4;
(a) S is conflict-serializable but not recoverable
T1 T2 T3 T4 (b) S is not conflict-serializable but is recoverable
Reads(X) (c) S is both conflict-serializable and recoverable
Writes(X) (d) S is neither conflict-serializable nor it is recoverable
Commit
Writes(X)
Commit
Writes(Y)
Reads(Z)
Commit
Reads(X)
Reads(Y)
Commit
GATE-2022 [CRPQ-12]
Class Room Practice Question:
GATE-2021-Set1
Previous GATE Question: Q. Consider two transactions T1 and T2 and four
schedules S1, S2, S3, S4, of T1 and T2 as given
below:
T1 : R1[x] W1[x] W1[y] T2 : R2[x] R2[y] W2[y]
S1: r1(x) ; r3(y) ; r3(x) ; r2(y); r2(z); w3(y) ; w2(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)
(S1) 2RA 2WA 3RC 2WB 3WA 3WC 1RA 1RB 1WA 1WB
(S2) 3RC 2RA 2WA 2WB 3WA 1RA 1RB 1WA 1WB 3WC
(S3) 2RA 3RC 3WA 2WA 2WB 3WC 1RA 1RB 1WA 1WB
T1 : r1(X)w1(X)r1(Y)w1(Y)
T2 : r2(Y)w2(Y)r2(Z)w2(Z)