发明授权
- 专利标题: Coexistence of advanced hardware synchronization and global locks
- 专利标题(中): 高级硬件同步和全局锁的共存
-
申请号: US12510893申请日: 2009-07-28
-
公开(公告)号: US08407455B2公开(公告)日: 2013-03-26
- 发明人: David S. Christie , Michael P. Hohmuth , Stephan Diestelhorst
- 申请人: David S. Christie , Michael P. Hohmuth , Stephan Diestelhorst
- 申请人地址: US TX Austin
- 专利权人: Advanced Micro Devices, Inc.
- 当前专利权人: Advanced Micro Devices, Inc.
- 当前专利权人地址: US TX Austin
- 代理机构: Williams, Morgan & Amerson, P.C.
- 主分类号: G06F9/00
- IPC分类号: G06F9/00
摘要:
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.
公开/授权文献
信息查询