in GATE retagged by
361 views
1 vote
1 vote

Which of the following schedules are conflicts serializable?

  1. S1:   $r1$ $\left ( A \right )$, $r1$$\left ( B \right )$, $w2$$\left ( A \right )$, $r3$ $\left ( A \right )$, $w1$$\left ( B \right )$, $w3$ $\left ( A \right )$, $r2$ $\left ( B \right )$, $w2$$\left ( B \right )$
  2. S2 :  $r1$$\left ( A \right )$, $r2$$\left ( A \right )$, $r3$ $\left (B \right )$, $w1$$\left ( A \right )$, $r2$ $\left ( C \right )$, $r2$ $\left (B \right )$, $w2$ $\left (B \right )$, $w1$$\left ( C \right )$
  3. S3:   $w3$$\left ( A \right )$ , $r1$ $\left ( A \right )$, $w1$ $\left (B \right )$, $r2$$\left (B \right )$, $w2$ $\left ( C \right )$, $r3$, $\left ( C \right )$
  1. $S1,S3$ only
  2. $S2,S3$ only
  3. $S1,S2$ only
  4. $S1, S2, S3$
in GATE retagged by
by
361 views

1 Answer

2 votes
2 votes
Best answer
S1: Precedence graph , No cycle: So conflict serializable.
S2:  Precedence graph ,  No cycle: Conflict serializable.
S3: Precedence graph , Cycle: Not conflict serializable
selected by

4 Comments

Think C does not have a cycle
0
0
S3 does have a cycle so it is not conflict serializable , option C is correct.
0
0
where is the cycle in s3
0
0
cycle in 3rd transaction is as follow

 w3(A) -> r1(A)    w1(B) -> r2(B)  w2(C) -> r3(C)

   3      ->   1         1     ->  2         2    ->   3
0
0
Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

64.3k questions

77.9k answers

244k comments

80.0k users