Patent ID: 9424104
Filing Date: 2016-08-23
CPC Classification: G06F

Claim Text:
1. A computer program product comprising: a computer readable storage medium; and computer usable code stored on the computer readable storage medium, where, if executed by a processor, the computer usable code causes a computer to: conduct a runtime analysis of a multi-threaded execution environment including a first thread and a second thread; identify a context-based lock condition based on the runtime analysis and a threshold, wherein the threshold is to include at least one of a wait time threshold and an occurrence threshold, and wherein the context-based lock condition is to include a lock redundancy component and an execution context component; detect a request to acquire a lock associated with a shared resource in the multi-threaded execution environment; deny the request if both the lock redundancy component and the execution context component are satisfied to permit access to the shared resource without acquiring the lock for the shared resource; and grant the request if both the lock redundancy component and the execution context component are not satisfied to allow access to the shared resource only when the lock is acquired after the request is granted.