recategorized by
98 views
1 votes
1 votes
Consider $4$ transactions $T_{1},T_{2},T_{3}$ and $T_{4}$ having $1,4,2$ and $3$ operations respectively. If $a$ is the total number of serial schedules and $b$ is the total number of concurrent schedules then the total number of non-serial schedules, $c = b – a = $ _______
recategorized by

1 Answer

Best answer
1 votes
1 votes
If there are $n$ transactions then total no of serial schedule $= n!$

Here, $a = 4! = 24.$

If there are $n$ transactions each having $m_{1},m_{2},\dots,m_{n}$ operations. The number of concurrent schedules $ = \dfrac{(m_{1} + m_{2} + m_{3} + \dots + m_{n})!}{m_{1}!m_{2}!m_{3}!\dots m_{n}!}$

Here, $b = \dfrac{(1 + 2 + 3 + 4)!}{2!3!4!} = \dfrac{10!}{2 \cdot 6 \cdot 24} = 12600.$

Hence, $c = 12600 - 24 = 12576.$
selected by
Answer:

Related questions

1 votes
1 votes
1 answer
1
gatecse asked Oct 15, 2020
111 views
Consider the following schedules$$\textbf{First Schedule}$$$$ \begin{array}{|c|c|c|} \hline T_{1} & T_{2} & T_{3} \\\hline R(A) & & \\ & & R(A) \\ W(A) & & \\ & R(A) &...
2 votes
2 votes
1 answer
2
gatecse asked Oct 15, 2020
213 views
Consider the following schedule$$\textbf{Schedule}$$$$\begin{array}{|c|c|c|c|c|c|} \hline T_{1} & T_{2} & T_{3} & T_{4} \\\hline R(x) & & & \\ & R(x) & & \\ & & R(x) & \...