×

READ/WRITE LOCK WITH REDUCED READER LOCK SAMPLING OVERHEAD IN ABSENCE OF WRITER LOCK ACQUISITION

  • US 20080320262A1
  • Filed: 06/22/2007
  • Published: 12/25/2008
  • Est. Priority Date: 06/22/2007
  • Status: Active Grant
First Claim
Patent Images

1. A method for synchronizing access to shared data, comprising:

  • when reading said shared data;

    testing a writer flag that indicates whether a data writer is attempting to access said shared data;

    accessing said shared data using a relatively fast read mechanism if said writer flag is not set; and

    accessing said shared data using a relatively slow read mechanism if said writer flag is set; and

    when writing said shared data;

    setting said writer flag and acquiring a lock on said shared data;

    waiting for expiration of a grace period;

    waiting until there are no data readers accessing said shared data using said relatively fast read mechanism; and

    accessing said shared data.

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