×

Architecture for a read/write thread lock

  • US 7,188,344 B1
  • Filed: 12/21/1999
  • Issued: 03/06/2007
  • Est. Priority Date: 12/21/1999
  • Status: Expired due to Fees
First Claim
Patent Images

1. A system for managing the use of a resource shared among concurrently-executing threads, said system comprising:

  • a record for maintaining information as to whether any of said threads is accessing said resource at a given point in time, said record comprising a read counter and a write counter;

    an object, which comprises or references;

    a constructor, said constructor comprising computer-executable instructions to obtain a lock on said resource, to record said lock in said record, to increment said read counter when any of said threads reads from said resource, and to increment said write counter when any of said threads writes to said resource; and

    a destructor, said destructor comprising a set of computer-executable instructions to release said lock, to record the release of said lock in said record, and to decrement said read counter and said write counter;

    wherein the constructor instructions are executed upon creation of an instance of said object within a local scope, wherein the destructor instructions are executed upon the exiting of said local scope, and wherein no instruction, other than the instruction to exit said local scope, is required to release said lock.

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