/* assume there is a locally cached copy of the root */
repeat
guess = cost (s,c)
if guess > best-guess
then
best-guess = guess
best-s = s
s = parent (s)
until s = nil
insert-queue (best-s,c)/* queue up c in the wait-queue of best-s */
end handle-event
==========================
request-resource (r,n)
==========================
/* When a node n needs a resource r owned by node n’ the resource is requested,