A system and method is altering the priority of a process, or thread of
execution, when the process acquires a software lock. The priority is
altered when the lock is acquired and restored when the process releases
the lock. Thread priorities can be altered for every lock being managed
by the operating system or can selectively be altered. In addition, the
amount of alteration can be individually adjusted so that a process that
acquires one lock receive a different priority boost than a process that
acquires a different lock. Furthermore, a method of tuning a computer
system by adjusting lock priority values is provided.