20.5.2
a) (0,1,P), (0,2,P), (1,0,R), (2,0,D), (0,1,A), (0,2,A)
b) In the first phase, the coordinator exchanges the messages (0, 1, P),
(1, 0, R) with site 1 and the messages (0, 2, P), (2, 0, R) with site 2.
These messages may occur in any of 2 * (3 choose 2) = 6 (since (0, 1,
c) The number of possible sequences is the same as b). There are (2, 0,
D) instead of (2, 0, R) and (0, 1, A) and (0, 2, A) instead of (0, 1,
C) and (0, 2, C) in this case.
d) In the phase 1, the coordinator sends the messages (0, 1, P) and (0,
20.5.3
f(n) = (2n choose n) * n
20.6.1
a) Suppose that s, x, and i are the numbers of local shared, exclusive,
and increment locks that a transaction needs to have a global lock of
that type.