• retagged by
13,600 views
44 44 votes

Consider the transactions $T1, T2, \:\text{and} \:T3$ and the schedules $S1 \:\text{and} \:S2$ given below. 

  • $T1: r1(X); r1(Z); w1(X); 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); 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) $

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

  1. Only $S1$ is conflict-serializable.
  2. Only $S2$ is conflict-serializable.
  3. Both $S1$ and $S2$ are conflict-serializable.
  4. Neither $S1$ nor $S2$ is conflict-serializable.

3 Answers

Best answer
59 59 votes

$S_1$ has no cycle hence, Conflict-Serializable

$S_2$ has cycle hence NOT Conflict-Serializable

Answer is option A.

• edited by
7 7 votes
In s1 there is no cycle ..serial order of execution for s1 is t2 t3 and t1 in s2 there is cycle in precedence graph so not conflict serializable so ans is a
Answer:
Position:
Show:

Related questions

89 89 votes
4 answers 4 answers
46.3k
46.3k views
go_editor asked Sep 28, 2014
46,315 views
Consider the following schedule S of transactions $T1, T2, T3, T4:$$${\begin{array}{|l|l|l|l|}\hline\textbf{T1}& \textbf{T2}& \textbf{T3}& \textbf{T4} \\\hline& \...
39 39 votes
4 answers 4 answers
15.2k
15.2k views
go_editor asked Sep 26, 2014
15,156 views
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)$ respectiv...
9 9 votes
5 answers 5 answers
9.0k
9.0k views
go_editor asked Sep 28, 2014
8,977 views
In the context of modular software design, which one of the following combinations is desirable?High cohesion and high couplingHigh cohesion and low couplingLow cohesion ...
98 98 votes
2 answers 2 answers
23.5k
23.5k views
go_editor asked Sep 28, 2014
23,478 views
Consider the relational schema given below, where eId of the relation dependent is a foreign key referring to empId of the relation employee. Assume that every employee h...