×

Efficient support of consistent cyclic search with read-copy update and parallel updates

  • US 7,953,778 B2
  • Filed: 05/20/2008
  • Issued: 05/31/2011
  • Est. Priority Date: 05/20/2008
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for supporting concurrent updates to a shared data element group while preserving group integrity on behalf of one or more readers that are concurrently referencing group data elements without using locks or atomic instructions, comprising:

  • invoking two or more concurrent updaters to generate new group data elements;

    assigning each new data element created by the same updater a new generation number that is different than a global generation number associated with said data element group and which allows a reader of said data element group to determine whether said new data element is a correct version for said reader;

    said new generation numbers being different for each updater and being assigned according to an order in which said updaters respectively begin update operations;

    performing data element update processing by;

    respectively establishing a first version link that links each of said new data elements to a prior version thereof having a different generation number;

    respectively establishing a second version link that links each of said new data elements from its prior version; and

    respectively establishing group links that link said new data elements into said data element group so that said new data elements are reachable by readers;

    updating said global generation number associated with said data element group so that when all of said updaters have completed said data element update processing, said global generation number will correspond to said new generation number that is associated with the last of said updaters to begin update operations; and

    respectively freeing said prior version, said first version link and said second version link for each of said new data elements following a grace period.

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