Patent ID: 8505009

Claim:
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, including: determining other tasks waiting to obtain exclusive access to the resource; determining a resource requirement for each of the other tasks, wherein the determining of the resource requirement includes determining when the resource would be required, how long the resource would be required and how frequently the resource would be required, for each of the other tasks; obtaining, for each of the other tasks, the anticipated wait time based on their individual resource requirement; and determining the anticipated wait time for the task based on the anticipated wait time for each of the other tasks; and processing the task, depending on the anticipated wait time required to obtain exclusive access to the resource, wherein the processing includes passing the anticipated wait time to the task and letting the task determine its next action step, and the next action step includes options of waiting for the resource, quitting with success status, and quitting with errors.