Invention Grant
- Patent Title: Coexistence of advanced hardware synchronization and global locks
- Patent Title (中): 高级硬件同步和全局锁的共存
-
Application No.: US12510893Application Date: 2009-07-28
-
Publication No.: US08407455B2Publication Date: 2013-03-26
- Inventor: David S. Christie , Michael P. Hohmuth , Stephan Diestelhorst
- Applicant: David S. Christie , Michael P. Hohmuth , Stephan Diestelhorst
- Applicant Address: US TX Austin
- Assignee: Advanced Micro Devices, Inc.
- Current Assignee: Advanced Micro Devices, Inc.
- Current Assignee Address: US TX Austin
- Agency: Williams, Morgan & Amerson, P.C.
- Main IPC: G06F9/00
- IPC: G06F9/00

Abstract:
A computer-implemented method and article of manufacture is disclosed for enabling computer programs utilizing hardware transactional memory to safely interact with code utilizing traditional locks. A thread executing on a processor of a plurality of processors in a shared-memory system may initiate transactional execution of a section of code, which includes a plurality of access operations to the shared-memory, including one or more to locations protected by a lock. Before executing any operations accessing the location associated with the lock, the thread reads the value of the lock as part of the transaction, and only proceeds if the lock is not held. If the lock is acquired by another thread during transactional execution, the processor detects this acquisition, aborts the transaction, and attempts to re-execute it.
Public/Granted literature
- US20100023706A1 COEXISTENCE OF ADVANCED HARDWARE SYNCHRONIZATION AND GLOBAL LOCKS Public/Granted day:2010-01-28
Information query