Transforming locks in software loops
AssigneeInternational Business Machines Corporation
InventorsNikola Grcevski, Kevin Alexander Stoodley, Mark Graham Stoodley, Vijay Sundaresan
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorsNikola Grcevski, Kevin Alexander Stoodley, Mark Graham Stoodley, Vijay Sundaresan
Estimating the term…
An improved system and computer programming product for acquisition and release of locks within a software program is disclosed. In an exemplary embodiment, a lock within a loop is transformed by relocating acquisition and release instructions from within the loop to positions outside the loop. This may significantly decrease unnecessarily lock acquisition and release during execution of the software program. In order to avoid contention problems which may arise from acquiring and keeping a lock on an object over a relatively long period of time, a contention test may be inserted into the loop. Such a contention test may temporarily release the lock if another thread in the software program requires access to the locked object.
A system for transforming a lock on an executable object in a loop of a computer program, said lock having a pair of lock and unlock operations applicable on said executable object at original points within said loop, comprising:
A non-transitory, computer readable medium having computer readable program code embedded in the medium for transforming a lock on an object in a loop of a computer program, said lock having a pair of lock and unlock operations applicable on said object at original points within said loop, the non-transitory, computer readable program code including:
Dependencies are inferred from the claim text.