×

Method, system, program, and data structure for implementing a locking mechanism for a shared resource

  • US 7,107,267 B2
  • Filed: 01/31/2002
  • Issued: 09/12/2006
  • Est. Priority Date: 01/31/2002
  • Status: Active Grant
First Claim
Patent Images

1. A method for implementing a locking mechanism to control access to a shared resource, comprising:

  • receiving a request to access the shared resource;

    determining whether a first file has a first name;

    renaming the first file to a second name if the first file has the first name;

    updating a second file to indicate the received request in a queue of requests to the shared resource if the first file is renamed to the second name, wherein an ordering of the requests in the queue is used to determine whether access to the shared resource is granted to the request;

    reading and buffering a checksum from the second file before updating the second file; and

    renaming the first file to the first name after the second file is updated.

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