×

Updating shared variables atomically

  • US 8,495,311 B2
  • Filed: 06/25/2009
  • Issued: 07/23/2013
  • Est. Priority Date: 06/25/2009
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method, in a data processing system, for performing a transaction to update shared variables atomically, the method comprising:

  • reading a plurality of variables for an atomic transaction, wherein the atomic transaction comprises reading the plurality of variables and performing work and updating the plurality of variables;

    responsive to the completion of reading the plurality of variables, attempting to acquire a plurality of locks corresponding to the plurality of variables, wherein the attempt to acquire the plurality of locks is unsuccessful if reading the plurality of variables and attempting to acquire the plurality of locks takes longer than a predetermined time period;

    responsive to the attempt to acquire the plurality of locks being successful, performing work and updating the plurality of variables; and

    responsive to the completion of performing and updating the plurality of variables, waiting the predetermined time period prior to releasing the plurality of locks.

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