| 注册
首页|期刊导航|数码设计|无锁红黑树算法研究

无锁红黑树算法研究

王习平

数码设计Issue(20):71-73,3.
数码设计Issue(20):71-73,3.

无锁红黑树算法研究

Research on Lock-free Red-black Tree Algorithm

王习平1

作者信息

  • 1. 华鑫证券有限责任公司,上海 200122
  • 折叠

摘要

Abstract

Red-black tree is a widely used balanced search tree data structure.traditional red-black tree relies on locks for synchronization,which can lead to contention and limit its performance in concurrent scenarios.In this paper,we propose a lock-free red-black tree algorithm that overcomes the limitations of traditional red-black trees.This paper introduces a lock-free synchronization technique to design lock-free red-black tree data structures using fine-grained atomic operations and optimistic concurrency control.The proposed algorithm implements lock-free basic operations such as lookup,insertion and deletion and optimizes write operations to ensure concurrency control for read operations.To evaluate the performance of lock-free red-black tree,experiments are conducted under different hardware and software configurations using different datasets and performance metrics.The experimental results show that the lock-free red-black tree outperforms the traditional lock-based red-black tree in both single-threaded and multi-threaded scenarios.

关键词

红黑树/无锁同步机制/无锁红黑树/自平衡二叉查找树/数据结构

Key words

red-black tree/lock-free synchronization mechanism/lock-free red-black tree/self-balancing binary lookup tree/data structure

分类

信息技术与安全科学

引用本文复制引用

王习平..无锁红黑树算法研究[J].数码设计,2023,(20):71-73,3.

数码设计

1672-9129

访问量0
|
下载量0
段落导航相关论文