Patent ID: 11868818
Assignee: ADVANCED MICRO DEVICES, INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 17:
18. A processing device configured for speculative locking, the device comprising:
a processor core including an execution pipeline;
wherein the processing device is configured to:
execute a lock instruction of a thread to lock a particular memory entry of a memory device,

wherein the lock instruction is executed either speculatively or non-speculatively based on whether the particular memory entry was modified by a second thread during a window of exposure of an earlier speculative lock;
wherein executing the lock instruction speculatively includes permitting modification by the second thread to the particular memory entry; and
wherein the window of exposure is a time interval from a time when the particular memory entry was read during the earlier speculative lock to a time when the earlier speculative lock completed.