×

Compiling join patterns using software transactional memories

  • US 7,630,991 B2
  • Filed: 10/27/2005
  • Issued: 12/08/2009
  • Est. Priority Date: 10/27/2005
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for executing a choice join pattern that is a choice between a first join pattern branch and a second join pattern branch, the first join pattern branch performing a first set of changes on a first set of channels stored in a memory, the second join pattern branch performing a second set of changes on a second set of channels stored in the memory, the method comprising:

  • (a) using a processor to designate a randomly selected one of the first join pattern branch and the second join pattern branch as a selected join pattern branch and the other of the first join pattern branch and the second join pattern branch as an unselected join pattern branch;

    (b) determining whether each channel in the set of channels operated upon by the selected join pattern branch is accessible to the selected join pattern branch;

    (c) if so, then attempting to execute a first software transactional memory code associated with the selected join pattern branch;

    (d) if not, then determining whether each channel in the set of channels operated upon by the unselected join pattern branch is accessible to the unselected join pattern branch;

    (e) if so, then attempting to execute a second software transactional memory code associated with the unselected join pattern branch; and

    (f) if not, then returning to step (b),wherein attempting to execute the first software transactional memory code associated with the selected join pattern branch comprises;

    if the first software transactional memory code is successfully executed, then committing the set of changes performed by the selected join pattern branch; and

    if the first software transactional memory code is not successfully executed, then rolling back the set of changes performed by the selected join pattern branch and returning to the step of determining whether each channel in the set of channels operated upon by the selected join pattern branch is accessible to the selected join pattern branch.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×