×

SUPPORTING EFFICIENT SPIN-LOCKS AND OTHER TYPES OF SYNCHRONIZATION IN A CACHE-COHERENT MULTIPROCESSOR SYSTEM

  • US 20100332766A1
  • Filed: 06/26/2009
  • Published: 12/30/2010
  • Est. Priority Date: 06/26/2009
  • Status: Active Grant
First Claim
Patent Images

1. A method for acquiring a lock for a thread in a shared memory multiprocessor system, comprising:

  • loading the lock into a cache associated with the thread;

    reading a value of the lock; and

    if the value indicates that the lock is currently held by another thread, periodically executing an instruction that tests a status of the lock, whereinif the status indicates that the lock is valid, continuing to test the status of the lock;

    if the status indicates that the lock was invalidated by a store, attempting the acquire the lock by executing an atomic operation; and

    if the status indicates that the lock was invalidated by an atomic operation, or that the lock is not present in the cache, repeating the loading and reading operations.

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