1. A computer-implemented method of managing exclusive access to a resource, comprising: determining anticipated wait time, for a task to obtain exclusive access to the resource; and processing the task, depending on the anticipated wait time required to obtain exclusive access to the resource.