Administration of locks for critical sections of computer programs in a
computer that supports a multiplicity of logical partitions that include
determining by a thread executing on a virtual processor executing in a
time slice on a physical processor whether an expected lock time for a
critical section of the thread exceeds a remaining entitlement of the
virtual processor in the time slice and deferring acquisition of a lock
if the expected lock time exceeds the remaining entitlement.