×

Fair scalable reader-writer mutual exclusion

  • US 20070067774A1
  • Filed: 08/30/2005
  • Published: 03/22/2007
  • Est. Priority Date: 08/30/2005
  • Status: Active Grant
First Claim
Patent Images

1. A method of implementing fair scalable reader writer mutual exclusion for access to a critical section by a plurality of processing threads in a processing system comprising:

  • creating a first queue node for a first thread on the first thread'"'"'s stack, the queue node representing a request by the first thread to access the critical section;

    adding the first queue node to a queue pointed to by a single word reader writer mutex for the critical section, the queue representing a list of threads desiring access to the critical section, each queue node in the queue being on a stack of a thread of the plurality of processing threads;

    waiting until the first queue node has no preceding write requests as indicated by predecessor queue nodes on the queue;

    entering the critical section by the first thread;

    exiting the critical section by the first thread; and

    removing the first queue node from the queue.

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