×

Systems and Methods for Performing Concurrency Restriction and Throttling over Contended Locks

  • US 20170039094A1
  • Filed: 08/04/2015
  • Published: 02/09/2017
  • Est. Priority Date: 08/04/2015
  • Status: Active Grant
First Claim
Patent Images

1. A method, comprising:

  • performing by a computer;

    beginning execution of a multithreaded application that comprises a plurality of requests to acquire a concurrency-restricting lock associated with a critical section of code or a shared resource;

    arriving, by a given thread of the application, at the concurrency-restricting lock;

    determining whether the given thread is to be placed in an active circulation set associated with the concurrency-restricting lock or in a passive set associated with the concurrency-restricting lock, wherein threads in the active circulation set are able to contend for the concurrency-restricting lock, and wherein at most one thread in the passive set is able to contend for the concurrency-restricting lock;

    placing the given thread in the determined one of the active circulation set or the passive set; and

    subsequent to said placing;

    applying a culling policy to the active circulation set, wherein applying the culling policy comprises moving a thread from the active circulation set to the passive set;

    orapplying a fairness policy to the passive set and the active circulation set, wherein applying the fairness policy comprises moving a thread from the passive set to the active circulation set.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×