发明名称 Conditional serialization to improve work effort
摘要 In some embodiments of this disclosure, a computer-implemented method includes requesting, by a first thread on a computer system, conditional exclusive access to a first resource for updating the first resource to perform a first task. An indication is received that the requested exclusive access to the first resource is currently unavailable. Unconditional shared access to the first resource is requested after receiving the indication that the requested exclusive access is unavailable. The shared access to the first resource is received. The first resource is used, by a computer processor, through the shared access to perform the first task in lieu of the requested exclusive access.
申请公布号 US9244738(B2) 申请公布日期 2016.01.26
申请号 US201314062203 申请日期 2013.10.24
申请人 International Business Machines Corporation 发明人 Bibolet Richard A.;Compton Scott B.;Rooney William J.
分类号 G06F9/46;G06F9/50 主分类号 G06F9/46
代理机构 Cantor Colburn LLP 代理人 Cantor Colburn LLP ;Kinnaman, Jr. William A.
主权项 1. A computer-implemented method, comprising: requesting, by a first thread on a computer system, exclusive access to a first resource for updating the first resource to perform a first task, wherein the request for the exclusive access is conditional on the first resource not currently being held exclusively; receiving an indication of availability of the first resource; and executing, by a computer processor, one of a first action and a second action responsive to the indication, the executing comprising performing the first action if the indication indicates that the first resource is currently being held shared and performing the second action if the indication indicates that the first resource is being held exclusively; wherein the first action performed if the first resource is currently being held shared comprises waiting, by the first thread, until exclusive access to the first resource is available; and wherein the second action performed if the first resource is currently being held exclusively comprises: requesting, by the first thread, shared access to the first resource instead of the exclusive access to the first resource, responsive to the indication indicating that the first resource is being held exclusively;receiving the shared access to the first resource; andusing the first resource to perform the first task through the shared access in lieu of the exclusive access.
地址 Armonk NY US
您可能感兴趣的专利