×

METHOD AND APPARATUS FOR IMPLEMENTING ATOMIC FIFO

  • US 20100313208A1
  • Filed: 06/03/2009
  • Published: 12/09/2010
  • Est. Priority Date: 06/03/2009
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method performed by a multi-processing system having multiple execution units capable of executing multiple threads concurrently, the method comprising:

  • in a first thread of execution;

    atomically merging new data with existing data of an object via an atomic instruction associated with hardware that executes the first thread; and

    attempting to acquire exclusive access to the object, and if successful, enqueuing the object as a continuation element onto a queue having a list of continuation elements pending therein;

    in a second thread of execution which is executed concurrently with respect to the first thread;

    processing the continuation elements pending on a queue and assuming exclusive access to each continuation;

    executing a function member of the continuation element using a data member of the continuation element, the data member including the merged new data; and

    terminating the exclusive access to the second continuation element; and

    determining whether additional data was merged by a third thread of execution restarting the process if necessary.

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