发明名称 Techniques for synchronizing processing of at least two code threads
摘要 Described are techniques synchronizing processing of at least two code threads. A first thread executing in user space is provided. A second thread executing in kernel space is provided. A global mutex lock is provided for synchronizing processing between said first thread and said second thread. One of said first thread and said second thread holds the global mutex lock and is identified as a current owner of the global mutex lock. The other of said first thread and said second thread requests the global mutex lock and is blocked until the current owner of the global mutex lock releases the global mutex lock. The global mutex lock is held by at most one thread at a point in time and is identified as the current owner.
申请公布号 US8752057(B1) 申请公布日期 2014.06.10
申请号 US20080215904 申请日期 2008.06.30
申请人 EMC Corporation 发明人 Gould Christopher M.;McCann Peter J.
分类号 G06F9/52 主分类号 G06F9/52
代理机构 代理人
主权项 1. A method for synchronizing processing of at least two code threads comprising: providing a first thread executing in user space; providing a second thread executing in kernel space; and providing a global mutex lock for synchronizing processing between said first thread and said second thread wherein one of said first thread and said second thread holds the global mutex lock and is identified as a current owner of the global mutex lock, and the other of said first thread and said second thread requests the global mutex lock and is blocked until the current owner of the global mutex lock releases the global mutex lock, wherein said global mutex lock is held by at most one thread at a point in time and is identified as the current owner, wherein said first thread initiates creation of the global mutex lock and a global mutex structure associated with the global mutex lock, the global mutex structure including a dirty indicator which is set to dirty when the current owner terminates abnormally prior to releasing the global mutex lock thereby terminating while holding the global mutex lock, wherein said dirty indicator is set to indicate that the current owner terminated abnormally to notify a subsequent owner of the global mutex lock that a resource previously used by the current owner may be left in an invalid or inconsistent state.
地址 Hopkinton MA US