×

Efficient locking mechanism for multiple operations rights

  • US 10,318,357 B2
  • Filed: 03/03/2017
  • Issued: 06/11/2019
  • Est. Priority Date: 03/03/2017
  • Status: Active Grant
First Claim
Patent Images

1. A method of controlling access to a common resource, wherein a plurality of operations are configured to be performed on the common resource, comprising:

  • providing an operation lock (OPLOCK), which is a bitmap comprising a plurality of bit fields;

    providing a first set of bitmaps, where the first set of bitmaps correspond to a first operation that can be performed on the common resource, wherein the first set of bitmaps comprises a first mask bitmap and a first policy bitmap, wherein the first mask bitmap defines a first bit field in the operation lock that is associated with the first operation, and the first policy bitmap defines a compatibility between the first operation and each of the plurality of operations;

    providing a second set of bitmaps, where the second set of bitmaps correspond to a second operation that can be performed on the common resource, wherein the second set of bitmaps comprises a second mask bitmap and a second policy bitmap, wherein the second mask bitmap defines a second bit field in the operation lock that is associated with the second operation, and the second policy bitmap defines a compatibility between the second operation and each of the plurality of operations; and

    determining whether a task is permitted to perform a first operation on the common resource based on values of the operation lock and the first set of bitmaps,wherein a number of tasks configured to simultaneously access the common resource to perform the first operation is determined by a size of the first bit field; and

    wherein access to a task to perform the first operation is granted or denied based on a result of a bitwise AND of the operation lock and the first policy bitmap.

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