发明授权
- 专利标题: Techniques for accessing a shared resource using an improved synchronization mechanism
- 专利标题(中): 使用改进的同步机制访问共享资源的技术
-
申请号: US10861795申请日: 2004-06-04
-
公开(公告)号: US07644409B2公开(公告)日: 2010-01-05
- 发明人: David Dice , Hui Huang , Mingyao Yang
- 申请人: David Dice , Hui Huang , Mingyao Yang
- 申请人地址: US CA Santa Clara
- 专利权人: Sun Microsystems, Inc.
- 当前专利权人: Sun Microsystems, Inc.
- 当前专利权人地址: US CA Santa Clara
- 代理机构: Brooks Kushman P.C.
- 主分类号: G06F9/46
- IPC分类号: G06F9/46 ; G06F12/00 ; G06F9/44 ; G06F9/45
摘要:
A technique for accessing a shared resource of a computerized system involves running a first portion of a first thread within the computerized system, the first portion (i) requesting a lock on the shared resource and (ii) directing the computerized system to make operations of a second thread visible in a correct order. The technique further involves making operations of the second thread visible in the correct order in response to the first portion of the first thread running within the computerized system, and running a second portion of the first thread within the computerized system to determine whether the first thread has obtained the lock on the shared resource. Such a technique alleviates the need for using a MEMBAR instruction in the second thread.
公开/授权文献
信息查询