发明名称 RESOURCE SERIALIZATION IN A TRANSACTIONAL EXECUTION FACILITY
摘要 Embodiments include methods, systems and computer program products that include executing a begin transaction instruction to begin a transaction comprising a sequence of instructions, wherein the begin transaction instruction indicates that a resource will be accessed by the first processing device. Embodiments also include determining whether it is safe for the first processing device to access the resource. Based on a determination that it is safe for the first processing device to access the resource, embodiments include processing the sequence of instructions of the transaction. Based on a determination that the sequence of instructions of the transaction has been completed, embodiments include executing an end transaction instruction, wherein the end transaction instruction indicates that the first processing device has completed its access of the resource. Based on a determination that it is not safe for the first processing device to access the resource, embodiments include aborting the transaction.
申请公布号 US2016196143(A1) 申请公布日期 2016.07.07
申请号 US201615082004 申请日期 2016.03.28
申请人 International Business Machines Corporation 发明人 Mulder James H.;Relson Peter J.
分类号 G06F9/30 主分类号 G06F9/30
代理机构 代理人
主权项 1. A computer-implemented method, comprising: executing, on a first processing device, a begin transaction instruction to begin a transaction comprising a sequence of instructions, wherein the begin transaction instruction indicates that a resource, which is accessible to a plurality of processing devices, will be accessed by the first processing device by notifying each of the plurality of processing devices that the first processing device will be using the resource; determining whether it is safe for the first processing device to access the resource, wherein determining whether it is safe for the first processing device to access the resource comprises looking up the resource in a resource list maintained by the first processing device wherein the resource list comprises information regarding one or more processing devices using the resource and whether it is safe to use the resource; based on a determination that it is safe for the first processing device to access the resource, processing the sequence of instructions of the transaction; based on a determination that the sequence of instructions of the transaction has been completed, executing an end transaction instruction, wherein the end transaction instruction indicates that the first processing device has completed its access of the resource by notifying each of the plurality of processing devices that the first processing device is no longer using the resource; based on a determination that it is not safe for the first processing device to access the resource, aborting the transaction, wherein aborting the transaction includes rolling back operations performed during the transaction; based on a determination that the sequence of instructions of the transaction has not been completed prior to receiving an abort instruction from an owner of the resource, aborting the transaction, wherein the abort instruction from the owner of the resource includes an indication that it is no longer safe to use the resource; and based on receiving the abort instruction from the owner of the resource, updating the resource list to indicate that it is not safe to use the resource.
地址 Armonk NY US
您可能感兴趣的专利