Due: May 2, 2002
T3 T4
-------------------------------------
X(W) X(Y)
R(W) X(W)
X(X) R(W)
R(X) X(X)
X(Y) R(X)
U(X) U(X)
U(W) U(W)
Y <- W * X Y <- W * X
W(Y) W(Y)
U(Y) U(Y)
A
/ \
/ \
B C
/ \ / \
D E F G
/ \ / \ / \ / \
H I J K L M N O
Which of the following sequences of locks and unlocks conforms to
tree-locking protocol?
<T1, start> <T2, start> <T1, X, 10, 50> <T2, X, 50, 55> <T1, Y, 5, 35> <T1, commit>
<T1, start> <T2, start> <T1, X, 10, 20> <T3, start> <T2, Y, 21, 22> <T4, start> <T1, Z, 5, 33> <T3, Y, 22, 14> <T1, commit> <T4, Z, 33, 100> <CHECKPOINT> <T2, commit> <T4, X, 20, 15>
(1) T1 T2
--------------------
R(X)
R(Y)
W(X)
W(Y)
R(X)
W(X)
R(Y)
W(Y)
(2) T1 T2
--------------------
R(X)
R(Y)
W(X)
R(X)
W(X)
W(Y)
R(Y)
W(Y)
(1) T1 T2
--------------------
R(Y)
W(Z)
W(Z)
R(Y)
W(X)
(2) T1 T2
--------------------
R(Y)
W(Z)
R(Y)
W(Z)
W(X)
(1) T1 T2
--------------------
R(X)
W(Y)
W(Z)
R(X)
W(Z)
W(X)
R(Y)
W(Z)
(2) T1 T2
--------------------
R(X)
R(X)
W(Z)
W(X)
W(Y)
R(Y)
W(Z)
W(Z)
(1) T1 T2 T3
---------------------------------------
R(X)
W(Z)
R(X)
W(Z)
W(X)
W(Y)
R(Y)
W(Z)
(2) T1 T2 T3
---------------------------------------
R(X)
W(Z)
R(X)
W(Z)
W(X)
W(Y)
R(Y)
W(Z)
This document was generated using the LaTeX2HTML translator Version 98.1p1 release (March 2nd, 1998)
Copyright © 1993, 1994, 1995, 1996, 1997, Nikos Drakos, Computer Based Learning Unit, University of Leeds.
The command line arguments were:
latex2html -split 0 -no_navigation -show_section_numbers hw4-spr02.tex.
The translation was initiated by Jack Keane on 2002-04-20