发明名称 Serializing resource utilization using hardware built-in functions
摘要 A method includes identifying a first value of a lock word corresponding to a data structure, by a process in a plurality of processes that each have access to the data structure. The method also includes copying the data structure to a corresponding shadow record. The method additionally includes modifying the shadow record with a desired update for the data structure, and atomically updating the data structure and the lock word, by the process, using a hardware built-in function. The updating includes identifying a second value of the lock word and determining whether the first value of the lock word and the second value of the lock word are equivalent. The method additionally includes, in response to determining that the first value of the lock word and the second value of the lock word are equivalent, replacing the data structure with the shadow record and incrementing the lock word.
申请公布号 US9477696(B2) 申请公布日期 2016.10.25
申请号 US201414206467 申请日期 2014.03.12
申请人 CA, Inc. 发明人 Helsley David;Lee Lawrence
分类号 G06F17/30 主分类号 G06F17/30
代理机构 Baker Botts L.L.P. 代理人 Baker Botts L.L.P.
主权项 1. A method, comprising: identifying a first value of a lock word corresponding to a data structure, by a process in a plurality of processes that each have access to the data structure; copying the data structure to a corresponding shadow record; modifying the corresponding shadow record with a desired update for the data structure; and atomically updating the data structure and the lock word, by the process, using a hardware built-in function, the updating comprising: identifying a second value of the lock word;determining whether the first value of the lock word and the second value of the lock word are equivalent;in response to determining that the first value of the lock word and the second value of the lock word are equivalent, replacing the data structure with the modified corresponding shadow record; andincrementing the lock word.
地址 New York NY US