发明授权
US07237241B2 Methods and systems for managing access to shared resources using control flow
失效
使用控制流管理对共享资源的访问的方法和系统
- 专利标题: Methods and systems for managing access to shared resources using control flow
- 专利标题(中): 使用控制流管理对共享资源的访问的方法和系统
-
申请号: US10602538申请日: 2003-06-23
-
公开(公告)号: US07237241B2公开(公告)日: 2007-06-26
- 发明人: Hon Keat W. Chan , Carlos Gomes
- 申请人: Hon Keat W. Chan , Carlos Gomes
- 申请人地址: US WA Redmond
- 专利权人: Microsoft Corporation
- 当前专利权人: Microsoft Corporation
- 当前专利权人地址: US WA Redmond
- 代理机构: Klarquist Sparkman, LLP
- 主分类号: G06F9/46
- IPC分类号: G06F9/46
摘要:
Computer systems have resources that are often shared by plural processes (or threads). It is often desirable to limit access to these shared resources to one process at a time. Historically locks were used in conjunction with conditional tests to provide exclusive access to a region of code or data. Instead, a global variable contains a pointer to either a protected resource, or an exchange instruction. A process exchanges its' local variable with the global variable and jumps to the location in the exchanged local variable. If the global variable had the pointer to the shared resource before the exchange, then the jump enters the protected region. If not, the jump returns to exchange variables again. As soon as the pointer to the protected resource is returned to the global variable, a next exchange and jump will access the shared resource.
公开/授权文献
信息查询