Re-arrange operations of the transaction given in schedule in such a way that deadlock must not occur in the given schedule. You are only allowed to change sequence of operations in a transaction. You are not allowed te delete or insert new operations

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Re-arrange operations of the transaction given in
schedule in such a way that deadlock must
not occur in the given schedule. You are only
allowed to change sequence of
operations in a transaction. You are not allowed to
delete or insert new operations.
Rewrite the new schedule again and construct its
"Wait-for Graph". New graph must
not have any deadlock in it.
Transcribed Image Text:Re-arrange operations of the transaction given in schedule in such a way that deadlock must not occur in the given schedule. You are only allowed to change sequence of operations in a transaction. You are not allowed to delete or insert new operations. Rewrite the new schedule again and construct its "Wait-for Graph". New graph must not have any deadlock in it.
Emergency calls only
Telenor
0 *l 4. 96 2:34 PM
Edit
APS
26
Quiz
Question No
Re-arrange operations of the transaction given in schedule in such a way that deadlock must
not occur in the given schedule. You are only allowed to change sequence of
operations in a transaction. You are not allowed to delete or insert new operations.
Rewrite the new schedule again and construct its "Wait-for Graph". New graph must
not have any deadlock in it.
time
T1
T2
T3
T4
T5
T6
to
Begin Tran
Begin Tran
toi
Begin Tran
Lock(Y)
Begin Tran
Lock(E)
to2
Lock(T)
Read(Y)
Begin Tran
Lock(Z)
Read(E)
to3
Begin Tran
Read(T)
Y=Y*2
Lock(S)
Read(Z)
E=E+44
to4
Lock(X)
T=T-20
Y=Y+100
Read(S)
Z=Z+50
Lock(A)
tos
Read(X)
Lock(B)
Lock(C)
S=S+150
Write(Z)
Read(A)
to6
X=X+10
Read(B)
Read(C)
Lock(T)
Lock(Y)
A=E+50
to7
Write(X)
Lock(E)
Lock(Z)
Read(T)
Read(Y)
Commit
tos
Lock(A)
Read(E)
Read(Z)
T=T+S
Y=Y*5
to9
Read(A)
E=E+80
Z++
Commit
Lock(T)
ti0
A=A+50
Commit
Write(Z)
Read(T)
Commit
Commit
Commit
品
Тools
Mobile View
Share
PDF to DOC
Transcribed Image Text:Emergency calls only Telenor 0 *l 4. 96 2:34 PM Edit APS 26 Quiz Question No Re-arrange operations of the transaction given in schedule in such a way that deadlock must not occur in the given schedule. You are only allowed to change sequence of operations in a transaction. You are not allowed to delete or insert new operations. Rewrite the new schedule again and construct its "Wait-for Graph". New graph must not have any deadlock in it. time T1 T2 T3 T4 T5 T6 to Begin Tran Begin Tran toi Begin Tran Lock(Y) Begin Tran Lock(E) to2 Lock(T) Read(Y) Begin Tran Lock(Z) Read(E) to3 Begin Tran Read(T) Y=Y*2 Lock(S) Read(Z) E=E+44 to4 Lock(X) T=T-20 Y=Y+100 Read(S) Z=Z+50 Lock(A) tos Read(X) Lock(B) Lock(C) S=S+150 Write(Z) Read(A) to6 X=X+10 Read(B) Read(C) Lock(T) Lock(Y) A=E+50 to7 Write(X) Lock(E) Lock(Z) Read(T) Read(Y) Commit tos Lock(A) Read(E) Read(Z) T=T+S Y=Y*5 to9 Read(A) E=E+80 Z++ Commit Lock(T) ti0 A=A+50 Commit Write(Z) Read(T) Commit Commit Commit 品 Тools Mobile View Share PDF to DOC
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY