×

Conditional serialization to improve work effort

  • US 9,244,738 B2
  • Filed: 10/24/2013
  • Issued: 01/26/2016
  • Est. Priority Date: 10/24/2013
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method, comprising:

  • requesting, by a first thread on a computer system, exclusive access to a first resource for updating the first resource to perform a first task, wherein the request for the exclusive access is conditional on the first resource not currently being held exclusively;

    receiving an indication of availability of the first resource; and

    executing, by a computer processor, one of a first action and a second action responsive to the indication, the executing comprising performing the first action if the indication indicates that the first resource is currently being held shared and performing the second action if the indication indicates that the first resource is being held exclusively;

    wherein the first action performed if the first resource is currently being held shared comprises waiting, by the first thread, until exclusive access to the first resource is available; and

    wherein the second action performed if the first resource is currently being held exclusively comprises;

    requesting, by the first thread, shared access to the first resource instead of the exclusive access to the first resource, responsive to the indication indicating that the first resource is being held exclusively;

    receiving the shared access to the first resource; and

    using the first resource to perform the first task through the shared access in lieu of the exclusive access.

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