Invention Grant
US08768889B1 Method and apparatus for performing lock-free updates in a linked list
有权
用于在链表中执行无锁更新的方法和装置
- Patent Title: Method and apparatus for performing lock-free updates in a linked list
- Patent Title (中): 用于在链表中执行无锁更新的方法和装置
-
Application No.: US10820661Application Date: 2004-04-07
-
Publication No.: US08768889B1Publication Date: 2014-07-01
- Inventor: Paul A. Martin
- Applicant: Paul A. Martin
- Applicant Address: US CA Redwood Shores
- Assignee: Oracle America, Inc.
- Current Assignee: Oracle America, Inc.
- Current Assignee Address: US CA Redwood Shores
- Agency: Park, Vaughan, Fleming & Dowler LLP
- Agent A. Richard Park
- Main IPC: G06F7/00
- IPC: G06F7/00

Abstract:
One embodiment of the present invention provides a system that performs a lock-free update to one or more fields in an existing node in a linked list. To perform the update, the system first obtains a new node to be added to the linked list, wherein other processes do not possess references to the new node and therefore cannot initially access the new node. Next, the system copies a snapshot of the existing node to the new node, and then updates one or more fields in the new node that correspond to the one or more fields in the existing node. Next, in a single atomic operation the system modifies a next pointer of the existing node to point to the new node and also marks the next pointer to indicate that the existing node is deleted. In this way, the new node becomes part of the linked list and the existing node is deleted in a single atomic operation.
Public/Granted literature
- US3100436A Means for reducing thermal gradients in the hot-pressing of synthetic mica Public/Granted day:1963-08-13
Information query