Unlock instant, AI-driven research and patent intelligence for your innovation.

Queue data access method and device

A data access and queue technology, applied in the field of data processing, can solve the problems of low memory utilization, multiple memory fragments, excessive memory allocation and memory copy, etc., and achieve the effect of improving memory utilization and data access efficiency

Active Publication Date: 2021-08-24
HANGZHOU DPTECH TECH
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the allocated memory space is large each time memory is allocated, it will lead to low memory utilization. If the memory allocated each time is small, it will lead to excessive memory allocation and memory copying, resulting in decreased access performance.
However, if a circular queue is implemented based on a linked list, since each node needs a pointer, every time a node is created, memory must be allocated once, which will easily lead to more memory fragmentation, so the memory utilization rate is not high
[0004] It can be seen that the traditional queue access data scheme, in some more complex scenarios, is prone to defects of low memory utilization and low access efficiency

Method used

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
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Queue data access method and device
  • Queue data access method and device
  • Queue data access method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with this specification. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present specification as recited in the appended claims.

[0055] The terms used in this specification are for the purpose of describing particular embodiments only, and are not intended to limit the specification. As used in this specification and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the t...

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

PUM

No PUM Login to View More

Abstract

This specification provides a data access method and device for a queue. The method includes: constructing a double-layer circular queue whose inner and outer layers are circular queues; wherein, the inner circular queue is implemented based on an array, and the outer circular queue is implemented based on a linked list; Setting the management pointer of the outer circular queue; accessing data on the inner circular queue according to the management pointer. The above technical solution makes full use of the advantages of array-based and linked-list-based queues, and solves the problem that memory utilization and access efficiency cannot be well balanced. Especially in some more complex scenarios, memory utilization can be significantly improved. and data access efficiency.

Description

technical field [0001] This specification relates to the technical field of data processing, and in particular to a queue data access method and device. Background technique [0002] Queue is a commonly used in-memory data structure, which is often used in scenarios where data has first-in, first-out characteristics. The queue is a first-in-first-out data structure: when data enters the queue, it enters from the tail, and when fetching data from the queue, it takes it from the head. A circular queue is a logical end-to-end queue to realize the recycling of space, which can be implemented based on an array or a linked list. These two implementations have their own advantages and disadvantages. In some simple application scenarios, one of the two implementations can meet the requirements. However, in some more complex scenarios, especially when there are high requirements on memory utilization and access performance, these two methods are difficult to meet the requirements. ...

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

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/38
CPCG06F9/3856G06F5/06G06F2205/064G06F16/9027G06F3/0659
Inventor 谭天
Owner HANGZHOU DPTECH TECH