首页> 外国专利> Method and apparatus for implementing a lock-free skip list that supports concurrent accesses

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

机译:用于实现支持并发访问的无锁跳过列表的方法和装置

摘要

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.
机译:本发明的一个实施例提供了一种系统,该系统支持对无锁的跳过列表的并发访问,这意味着可以由多个进程同时访问该跳过列表,而不需要该进程执行锁定操作。在节点删除操作期间,系统会从跳过列表中接收对要删除的目标节点的引用。系统在目标节点中标记下一个指针,以指示该目标节点已删除,其中下一个指针包含跳过列表中紧随其后的节点的地址。该标记操作不会破坏紧随其后的节点的地址,此外,标记操作是原子执行的,因此不受其他过程的干扰。然后,系统自动修改跳过列表中紧接节点的下一个指针,使其指向跳过列表中紧接的节点,而不是指向目标节点,从而将目标节点拼接到跳过列表之外。

著录项

  • 公开/公告号US7308448B1

    专利类型

  • 公开/公告日2007-12-11

    原文格式PDF

  • 申请/专利权人 PAUL A. MARTIN;

    申请/专利号US20040805095

  • 发明设计人 PAUL A. MARTIN;

    申请日2004-03-19

  • 分类号G06F7/00;G06F3/00;

  • 国家 US

  • 入库时间 2022-08-21 20:10:09

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号