Modifying a series of lock acquire and release operations to use a single lock reservation
AssigneeInternational Business Machines Corporation
InventorAndrew James Craik
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorAndrew James Craik
Estimating the term…
Provided are a computer program product, system, and method for modifying a series of lock acquire and release operations to use a single lock reservation. A representation of source code is scanned to determine a series of acquire lock program statement and release lock program statement pairs to acquire and release a lock by a thread. A first acquire lock program statement in the series is modified to be an acquire with reserve program statement that when executed by the thread causes the thread to acquire the lock and indicate the lock as reserved for use by the thread. A last release lock program statement in the series is modified to be a release with cancel program statement that when executed by the thread causes the thread to release the lock and indicate the lock as not reserved.
A computer program product for managing a lock to a resource, the computer program product comprising a computer readable storage medium having computer readable program code embodied therein that is executable to perform operations, the operations comprising:
A system for managing a lock to a resource, comprising:
A method for managing a lock to a resource in a computing system, comprising:
Dependencies are inferred from the claim text.