A high-concurrency high-throughput non-waiting ring queue data storage method

By simplifying data storage through a circular queue structure and atomic operations, the problems of helper mechanisms and memory reclamation in waitless queues are solved, enabling high-concurrency and high-throughput data storage, improving thread running efficiency and stability, and making it particularly suitable for embedded devices.

CN117667783BActive Publication Date: 2026-11-27XIAN MICROELECTRONICS TECH INST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311676752.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-07
Publication Date
2026-11-27
Estimated Expiration
2043-12-07

Smart Images

  • Figure CN117667783B_ABST
    Figure CN117667783B_ABST
Patent Text Reader

Abstract

The application discloses a high-concurrency high-throughput no-wait ring queue data storage method, and belongs to the field of computer data structure, which comprises the following steps: 1, initializing the ring queue structure; 2, obtaining the current position index through atomic operation and bit operation; 3, judging whether the storage content pointed to by the index meets the read-write condition, if yes, turning to step 4, if not, turning to step 5; 4, writing or reading data; 5, operation failure, without making any modification to the content pointed to by the index, directly returning. Through simple design, the throughput of accessing the shared storage area is greatly improved, and the multi-thread synchronous operation is stably supported. The application adopts the ring queue, does not need to additionally apply for storage space in operation, has low space complexity, and can be applied to embedded devices with seriously limited performance; the code complexity of the application is low, the code readability is high, and the user is facilitated in later maintenance.
Need to check novelty before this filing date? Find Prior Art

Citation Information

Patent Citations

  • Method for achieving unlocked concurrence message processing mechanism

    CN104077113A

  • Lock-free ring buffer

    US20220327056A1