3,417 views
2 2 votes
Two transactions T1 and T2 are given as

T1:r1(A) w1(A) r1(B) w1(B) r1(C) w1(C)

T2:r2(B) w2(B) r2(C) w2(C) r2(D) w2(D)

The total number of conflicts serializable schedules that can be formed by T1 and T2 are _____

2 Answers

4 4 votes

Before Solving this question, it is recommended to have a look on https://gateoverflow.in/247402

for clarity images https://drive.google.com/open?id=1SUxBvjlo3XvA0EcWBEDPwDMtxcI3PNXy

1 1 vote

In $T_{1}\rightarrow T_{2}$

$T_{1}$ $T_{2}$
   
$r(A)$  
$w(A)$  
$r(B)$  
$w(B)$  
${\color{DarkRed} {r(C)}}$  
${\color{DarkRed} {w(C)}}$ ${\color{DarkRed} {r(B)}}$
  ${\color{DarkRed} {w(B)}}$
  $r(C)$
  $w(C)$
  $r(D)$
  $w(D)$
   

 

Here those colored $4$ transaction has no conflict

So, Number of conflict will be $=\frac{4!}{2!2!}=6$

We divided by $2!$ because $r(C),w(C)$ cannot combine among them

Similarly $r(B),w(B)$ cannot arrange among them.


Now for $T_{2}\rightarrow T_{1}$

Case $1:$

$r1(A),w1(A)$ has no conflict with any transaction of $T_{2}$

So, total conflict serializable schedule$=\frac{8!}{2!6!}=28$

Now for $r1(B),w1(B)$ has no conflict with $r2(C),w2(C)$,$r2(D),w2(D)$ of $T_{2}$

So, total conflict serializable schedule$=\frac{6!}{2!4!}=15$

Now for $r1(C),w1(C)$ has no conflict with $r2(D),w2(D)$

So, total conflict serializable schedule$=\frac{4!}{2!2!}=6$


Total number of conflict serializable schedule$=6+28+15+6=55$

Position:
Show:

Related questions

1 1 vote
1 1 answer
1.4k
1.4k views
Harsh Saini_1 asked Dec 27, 2023
1,447 views
How many total $Conflict$ $Serializable$ $Schedules$ are possible that can be formed by $T1$ and $T2?$$T1:$ $r_1(A)$ $r_1(B)$ $w_1(B)$$T2:$ $r_2(B)$ $r_2(A)$ $w_2(B)$
1 1 vote
1 1 answer
959
959 views
rajoramanoj asked Jan 7, 2018
959 views
How many concurrent schedules are conflict serializable of given transactions T1 and T2:
12 12 votes
6 6 answers
7.1k
7.1k views
shivanisrivarshini asked Jan 23, 2016
7,051 views
Number of conflict serializable schedules inT1 : R(A) W(A) R(B) W(B)T2: R(A) W(A) R(B) W(B)
5 5 votes
1 1 answer
3.7k
3.7k views
radha gogia asked Oct 19, 2015
3,686 views
The transactions $T1$ and $T2$ are given as follows:$T1$: $R1(A)$ $W1(A)$ $R1(B)$ $W1(B)$$T2$ : $R2(B)$ $W2(B)$ $R2(C)$ $W2(C)$The total number of conflicts serializable ...