Provided is a method, system and program for managing operation requests
using different resources. In one embodiment, a first queue is provided
for operations which utilize a first resource of a first and second
resource. A second queue is provided for operations which utilize the
second resource. An operation is queued on the first queue until the
first resource is acquired. The first resource is released if the second
resource is not also acquired. The operation is queued on the second
queue when the first resource is acquired but the second resource is not.
In addition, the first resource is released until the operation acquires
both the first resource and the second resource.