×

MANAGING LOCK AND UNLOCK OPERATIONS USING OPERATION PREDICTION

  • US 20180293070A1
  • Filed: 05/31/2017
  • Published: 10/11/2018
  • Est. Priority Date: 04/05/2017
  • Status: Active Grant
First Claim
Patent Images

1. A method for managing instructions on a processor comprising a plurality of processor cores, the method comprising:

  • identifying selected instructions as being associated with operations from a stored library of operations including at least one lock operation and at least one unlock operation, the identifying including, for a plurality of instructions included in a particular thread executing on the processor, identifying a first subset of the plurality of instructions as being associated with a lock operation based on predetermined characteristics of the plurality of instructions, and identifying a second subset of the plurality of instructions as being associated with an unlock operation based on predetermined characteristics of the plurality of instructions, andmanaging lock and unlock operations associated with the selected instructions that are issued on a first processor core of the processor, for a first thread executing on the first processor core, the managing including;

    for each instruction included in the first thread and identified as being associated with a lock operation corresponding to a particular lock, in response to determining that the particular lock has already been acquired, continuing to attempt to acquire the particular lock for a plurality of attempts using a lock operation different from the lock operation in the stored library, andfor each instruction included in the first thread and identified as being associated with an unlock operation corresponding to a particular lock, releasing the particular lock from the first thread.

View all claims
  • 4 Assignments
Timeline View
Assignment View
    ×
    ×