1. A computer system comprising: tasks potentially contending for a latch, each task comprising: a probability determining component to dynamically estimate the probability that the task will successfully acquire the latch; and a suspending component to place the task in a suspended state for a defined sleep time where the estimated probability is below a predetermined threshold value.