Method and apparatus for implementing a lock-free skip list that supports concurrent accesses

a skip list and skip list technology, applied in the direction of multi-programming arrangements, data processing applications, instruments, etc., can solve the problem that the lock-free retention can become a serious impediment to system performan
US7308448B1Active Publication Date: 2007-12-11ORACLE INT CORP

Patent Information

Authority / Receiving Office
US · United States
Patent Type
Patents(United States)
Current Assignee / Owner
ORACLE INT CORP
Publication Date
2007-12-11

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

One embodiment of the present invention provides a system that supports concurrent accesses to a skip list that is lock-free, which means that the skip list can be simultaneously accessed by multiple processes without requiring the processes to perform locking operations. During a node deletion operation, the system receives reference to a target node to be deleted from the skip list. The system marks a next pointer in the target node to indicate that the target node is deleted, wherein next pointer contains the address of an immediately following node in the skip list. This marking operation does not destroy the address of the immediately following node, and furthermore, the marking operation is performed atomically and thereby without interference from other processes. The system then atomically modifies the next pointer of an immediately preceding node in the skip list to point to an immediately following node in the skip list, instead of pointing to the target node, thereby splicing the target node out of the skip list.
Need to check novelty before this filing date? Find Prior Art

Description

RELATED APPLICATION

[0001] This application hereby claims priority under 35 U.S.C. §119 to U.S. Provisional Patent Application No. 60 / 456,792, filed on 21 Mar. 2003, entitled “Practical Lock-Free Skip List,” by inventor Paul A. Martin.BACKGROUND

[0002] 1. Field of the Invention

[0003] The present invention relates to the design of lookup structures within computer systems. More specifically, the present invention relates to a method and apparatus for implementing a lock-free skip list that supports concurrent accesses within a computer system.

[0004] 2. Related Art

[0005] A skip list is a dynamically sized sorted linked list that offers logarithmic time performance for searching, inserting, and deleting elements. William Pugh developed a basic design for a skip list to be used by a single thread (see “A Skip List Cookbook,” by William Pugh, University of Maryland Institute for Advanced Computer Studies UMIACS Technical Report No. UMIACS-TR-89-72.1).

[0006] A skip list is neither a single list (...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More