Question
Consider the following schedule S with two transactions T1 and T2:
S: R1(X); W1(X); R2(X); W2(X); R1(Y); W1(Y); Commit1; R2(Y); W2(Y); Commit2;
(i) Draw the precedence (serializability) graph for the schedule S.
(ii) Is the schedule S serializable? If yes, provide the equivalent serial schedule(s). If no, explain why.
iii) Identify any concurrency problems (e.g., Lost Update, Dirty Read) present in this schedule. Explain how the problem occurs.
Answer :
Word Count : 585
The precedence (serializability) graph has two nodes: T1 and T2. We add a directed edge Ti → Tj whenever Ti performs an operation on some data item that conflicts with a later operation by Tj (read/write, write/read, or write/write on the same item), with the earlier action first in the schedule. Look at conflicts in S: * On X: W1(X) occurs before R2(X) and before W2(X). So there are conflicts W1(X) → R2(X) and W1(X) → W2(X), which produce an edge T1 → T2. * On Y: W1(Y) occurs before R2(Y) and before W2(Y). So there are conflicts W1(Y) → R2(Y) and W1(Y) → W2(Y), which also produce an edge T1 → T2. Thus the precedence graph contains a single directed edge from T1 to T2 (T1 → T2) and no edge from T2 back to T1. Because the graph is acyclic (just T1 → T2), _________ _____ ____ __________ _________ _______ __________ ________ _____.
________ ____ _________ _________ ___ _________ _________ ______.
_____ __________ ______ _____ _____ _______ _______ _____ ____ ______ ________ _______.
________ _______ ____ ___ __________ _____.
______ ________ _____ ____ ________ ____ ________ __________.
_______ ____ ______ ________ _________ __________ ______ _____.
________ ________ ______ _______ _________ ____.
________ ______ ________ _____ _______ ______ ______ ________ ______ __________ ____.
______ ________ _____ _______ ___ ____ ______ ___ ___ ____ ____ ______.
_______ ______ ______ __________ ______ _________ ___ __________ _________ ________ ____.
___ ____ _________ ________ ____ __________ ____.
____ ____ ______ _____ ____.
_____ ________ _______ ______ _____ ____ _______ __________ __________ ___.
______ __________ ____ ________ __________ _______ ___ ___ _______ _______ ____ ______.
___ ________ _______ _________ __________ ______.
_____ ___ _____ _______ ________ ___ _____.
__________ ____ ___ ____ ________.
__________ _________ ___ __________ ________ ______ _____ _____ _______ _________.
________ _______ ___ _______ ______.
___ ________ _______ __________ __________ ______ ______ __________ _________ ________ ____ ________.
__________ _________ ______ ____ _____ ______ __________ __________ _________ _______ ___.
______ _____ __________ ___ ___ __________ ________ ________ ____ _______.
_______ _____ _________ _____ _______.
____ ____ __________ ______ _______.
__________ __________ _____ _______ ___ _________.
_____ ______ ______ _________ _______ __________.
____ _______ ______ _____ __________ ____.
__________ __________ _____ ___ ____ _____ ___.
___ _________ ________ __________ __________.
_______ _____ ________ _______ ________ ____ __________ _____ __________ ________ _______ ___.
_______ ____ __________ _________ ______ ___.
________ _________ _________ _________ _____.
_________ ___ _________ _________ ____ __________ __________.
_______ _____ _____ ______ ____ ________ ________ ________.
______ _________ ________ ______ ______ _______ ___ _______ ________ ______.
_________ __________ ___ _________ __________ _________ _______ __________.
__________ ________ ________ __________ _______ _________ ____ _______ ________ _____.
____ _______ _________ ________ _____ _______ ________ _________ ________ ___.
_________ __________ ____ _________ ______ _______ ______ _________ ___ _____.
_________ ________ ________ _________ ________ ________ ________ ______ ______.
_________ ___ _____ ________ ____ __________ ________ ________ _____.
_____ _______ _________ ________ _______ _______.
_____ ___ _________ ______ __________ _______ __________.
___ ____ _____ _________ _______.
____ _________ _______ _______ ____ _____ _________ ____ ________ _______ ________ __________.
_______ _______ ________ _________ ___ __________ ____ ________.
__________ ___ _________ ____ _______ ____ _________.
__________ ______ ____ _________ ____ _________ ____ _________ ________.
_____ ___ _______ ____ ___ ____ _____.
______ ___ ___ _____ _______ __________ ________ ________.
_______ _________ ______ _____ ___ ______ ______ ____ ______ ________ _______.
____ ____ _____ ______ _____ __________ ________ _________ _______ _______ _____.
______ ______ _______ ___ _____ ______ _______ _______.
___ _______ ____ ___ __________.
Get Full Answer on WhatsApp
The precedence (serializability) graph has two nodes: T1 and T2. We add a directed edge Ti → Tj whenever Ti performs an operation on some data item that conflicts with a later operation by Tj (read/write, write/read, or write/write on the same item), with the earlier action first in the schedule. Look at conflicts in S: * On X: W1(X) occurs before R2(X) and before W2(X). So there are conflicts W1(X) → R2(X) and W1(X) → W2(X), which produce an edge T1 → T2. * On Y: W1(Y) occurs before R2(Y) and before W2(Y). So there are conflicts W1(Y) → R2(Y) and W1(Y) → W2(Y), which also produce an edge T1 → T2. Thus the precedence graph contains a single directed edge from T1 to T2 (T1 → T2) and no edge from T2 back to T1. Because the graph is acyclic (just T1 → T2), _________ _____ ____ __________ _________ _______ __________ ________ _____.
________ ____ _________ _________ ___ _________ _________ ______.
_____ __________ ______ _____ _____ _______ _______ _____ ____ ______ ________ _______.
________ _______ ____ ___ __________ _____.
______ ________ _____ ____ ________ ____ ________ __________.
_______ ____ ______ ________ _________ __________ ______ _____.
________ ________ ______ _______ _________ ____.
________ ______ ________ _____ _______ ______ ______ ________ ______ __________ ____.
______ ________ _____ _______ ___ ____ ______ ___ ___ ____ ____ ______.
_______ ______ ______ __________ ______ _________ ___ __________ _________ ________ ____.
___ ____ _________ ________ ____ __________ ____.
____ ____ ______ _____ ____.
_____ ________ _______ ______ _____ ____ _______ __________ __________ ___.
______ __________ ____ ________ __________ _______ ___ ___ _______ _______ ____ ______.
___ ________ _______ _________ __________ ______.
_____ ___ _____ _______ ________ ___ _____.
__________ ____ ___ ____ ________.
__________ _________ ___ __________ ________ ______ _____ _____ _______ _________.
________ _______ ___ _______ ______.
___ ________ _______ __________ __________ ______ ______ __________ _________ ________ ____ ________.
__________ _________ ______ ____ _____ ______ __________ __________ _________ _______ ___.
______ _____ __________ ___ ___ __________ ________ ________ ____ _______.
_______ _____ _________ _____ _______.
____ ____ __________ ______ _______.
__________ __________ _____ _______ ___ _________.
_____ ______ ______ _________ _______ __________.
____ _______ ______ _____ __________ ____.
__________ __________ _____ ___ ____ _____ ___.
___ _________ ________ __________ __________.
_______ _____ ________ _______ ________ ____ __________ _____ __________ ________ _______ ___.
_______ ____ __________ _________ ______ ___.
________ _________ _________ _________ _____.
_________ ___ _________ _________ ____ __________ __________.
_______ _____ _____ ______ ____ ________ ________ ________.
______ _________ ________ ______ ______ _______ ___ _______ ________ ______.
_________ __________ ___ _________ __________ _________ _______ __________.
__________ ________ ________ __________ _______ _________ ____ _______ ________ _____.
____ _______ _________ ________ _____ _______ ________ _________ ________ ___.
_________ __________ ____ _________ ______ _______ ______ _________ ___ _____.
_________ ________ ________ _________ ________ ________ ________ ______ ______.
_________ ___ _____ ________ ____ __________ ________ ________ _____.
_____ _______ _________ ________ _______ _______.
_____ ___ _________ ______ __________ _______ __________.
___ ____ _____ _________ _______.
____ _________ _______ _______ ____ _____ _________ ____ ________ _______ ________ __________.
_______ _______ ________ _________ ___ __________ ____ ________.
__________ ___ _________ ____ _______ ____ _________.
__________ ______ ____ _________ ____ _________ ____ _________ ________.
_____ ___ _______ ____ ___ ____ _____.
______ ___ ___ _____ _______ __________ ________ ________.
_______ _________ ______ _____ ___ ______ ______ ____ ______ ________ _______.
____ ____ _____ ______ _____ __________ ________ _________ _______ _______ _____.
______ ______ _______ ___ _____ ______ _______ _______.
___ _______ ____ ___ __________.
Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★