×

Synchronization techniques in a multithreaded environment

  • US 7,904,685 B1
  • Filed: 06/12/2003
  • Issued: 03/08/2011
  • Est. Priority Date: 11/13/1998
  • Status: Expired due to Term
First Claim
Patent Images

1. A method in a multithreaded architecture computer system for processing of a thread waiting for access to a memory location, the multithreaded architecture computer system having a plurality of threads, the method comprising:

  • when access by a thread to the memory location is blocked,enabling an exception to be raised each time the memory location is accessed while execution of the thread is blocked, wherein the raising of the exception is enabled by setting a trap bit associated with the memory location, andblocking execution of the thread so that the thread does not attempt to access the memory location before the thread is restarted; and

    detecting access to the memory location while execution of the thread is blocked and the trap bit associated with the memory location is set;

    raising the exception as a result of the detected access to the memory location while execution of the thread is blocked and the trap bit associated with the memory location is set;

    in response to the exception being raised,completing the detected access to the memory location,restarting execution of the thread in response to completing the detected access so that the thread can attempt to access the memory location,if access to the memory location by the thread is successful, allowing the thread to continue its execution, andif access to the memory location by the thread is not successful,enabling the exception to be raised each time the memory location is accessed while execution of the thread is blocked, wherein the raising of the exception is enabled by setting a trap bit associated with the memory location, andblocking execution of the thread so that the thread does not attempt to access the memory location before the thread is restarted.

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