摘要 |
<p>An illustrative embodiment of a computer-implemented process for software object lock management using observations, loads a class containing class information for a state and a lock count, allocates an instance of an object using the class information for the state to form an instance, receives a lock request associated with the instance, and selects a runtime behavior associated with the instance according to the class information. The computer-implemented process determines whether the lock count is greater than a threshold value, and responsive to a determination that the lock count is not greater than a threshold value, sets the class information for the state to non-locking and removes a lock field from the instance.</p> |