发明授权
- 专利标题: Deallocation of computer data in a multithreaded computer
- 专利标题(中): 多线程计算机中计算机数据的分配
-
申请号: US11926967申请日: 2007-10-29
-
公开(公告)号: US08209692B2公开(公告)日: 2012-06-26
- 发明人: William Joseph Armstrong , Peter Joseph Heyrman , Naresh Nayar
- 申请人: William Joseph Armstrong , Peter Joseph Heyrman , Naresh Nayar
- 申请人地址: US NY Armonk
- 专利权人: International Business Machines Corporation
- 当前专利权人: International Business Machines Corporation
- 当前专利权人地址: US NY Armonk
- 代理机构: Wood, Herron & Evans LLP
- 主分类号: G06F9/46
- IPC分类号: G06F9/46
摘要:
An apparatus, program product and method support the deallocation of a data structure in a multithreaded computer without requiring the use of computationally expensive semaphores or spin locks. Specifically, access to a data structure is governed by a shared pointer that, when a request is received to deallocate the data structure, is initially set to a value that indicates to any thread that later accesses the pointer that the data structure is not available. In addition, to address any thread that already holds a copy of the shared pointer, and thus is capable of accessing the data structure via the shared pointer after the initiation of the request, all such threads are monitored to determine whether any thread is still using the shared pointer by determining whether any thread is executing program code that is capable of using the shared pointer to access the data structure. Once this condition is met, it is ensured that no thread can potentially access the data structure via the shared pointer, and as such, the data structure may then be deallocated.
公开/授权文献
信息查询