×

Concurrency-safe reader-writer lock with time out support

  • US 6,546,443 B1
  • Filed: 12/15/1999
  • Issued: 04/08/2003
  • Est. Priority Date: 12/15/1999
  • Status: Expired due to Term
First Claim
Patent Images

1. In a computer system, a method of granting a lock to a set of a plurality of concurrently-executing entities, the method comprising:

  • receiving a request of a first executing entity out of the set requesting the lock as a reader;

    responsive to said receiving the request of a first executing entity requesting the lock as a reader, determining that no executing entities hold the lock as a writer;

    responsive to said determining that no executing entities hold the lock as a writer, granting the lock to the first executing entity as a reader, wherein said determining that no executing entities hold the lock as a writer and granting the lock to the first executing entity are performed together with an interlocked operation;

    receiving a request of a second executing entity out of the set requesting the lock as a writer;

    responsive to said receiving the request of a second executing entity requesting the lock as a writer, determining that no executing entities hold the lock as a writer and no executing entities hold the lock as a reader; and

    responsive to said determining that no executing entities hold the lock as a writer and no executing entities hold the lock as a reader, granting the lock to the second executing entity as a writer, wherein said determining that no executing entities hold the lock as a writer and no executing entities hold the lock as a reader and granting the lock to the second executing entity are performed together with an interlocked operation.

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