Dynamically adjustable annular buffer area

A ring buffer, dynamic adjustment technology, applied in the field of data processing, can solve problems such as inability to determine the buffer size, poor method flexibility, and complicated movement of read and write pointers

Active Publication Date: 2020-06-16
CHENGDU ZHONGQIAN AUTOMATION ENG
View PDF8 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantages of this method are: the size of the newly added buffer must be determined and cannot be changed dynamically; there is an overhead of data copying, which may affect system performance if the number is large; the original buffer is not released, effectively occupying system memory resources
The disadvantage of this method is that: the size of the newly added buffer must be determined and cannot be changed dynamically; the movement of the read and write pointer becomes complicated, and the readable and writable positions are closely related to the expansion point of the buffer
[0007] In the existing methods, the size of the new buffer cannot be determined because the amount of data to be written is uncertain, and the flexibility of the method is poor; in addition, because the current buffer is statically established, when not operating Failure to release it in system memory will result in invalid use of memory space

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
  • Dynamically adjustable annular buffer area
  • Dynamically adjustable annular buffer area
  • Dynamically adjustable annular buffer area

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The present invention will be further described below in conjunction with the accompanying drawings.

[0024] Such as Figure 4 As shown, the invention provides a dynamically adjustable ring buffer, including: a fixed-length ring buffer and a plurality of data buffer units dynamically established according to the number of data to be written when the ring buffer is full, said The data buffer units are linked in the form of a linked list, and the head of the linked list points to the first established data buffer unit. The buffer unit is dynamically opened according to the size of each data volume to be written, and multiple data buffers are sorted according to the establishment time, and then linked through a linked list.

[0025] The above-mentioned data processing method in the dynamically adjustable ring buffer is as follows:

[0026] The ring buffer reads and writes data normally; obtains the remaining writable units of the ring buffer, and when the data buffer is...

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

The invention provides a dynamically adjustable annular buffer area. The area comprises an annular buffer area body with a fixed length and a plurality of data buffer units which are dynamically established according to the number of data to be written when the annular buffer area body is full, the data buffer units are linked in a linked list mode, and a linked list header points to the data buffer unit which is established firstly. By adopting the technical scheme, the data buffer area is dynamically developed, the application is flexible and feasible, the dynamically established data bufferarea is released by the system after being used, and the memory of the system is not occupied invalidly.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a dynamically adjustable ring buffer. Background technique [0002] The storage space of the ring buffer is logically connected at the first place, and it is a one-dimensional continuous linear structure with a fixed length in physical storage, such as figure 1 As shown, in the application, the size of the ring buffer is usually fixed, and the read pointer and the read and write pointer are defined to point to the current readable and writable data positions respectively; in the initial state, the read and write pointers point to the same position, The number N of data stored in the current ring buffer is 0; when writing a data, N+1, the write pointer moves to the next writable position; when reading a data, N-1, the read pointer moves to the next A readable location; when the number of written data reaches the maximum capacity of the buffer, it means that the ring buffer is full,...

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 Applications(China)
IPC IPC(8): G06F3/06
CPCG06F3/061G06F3/0656
Inventor 李驹光唐东明刘湛
Owner CHENGDU ZHONGQIAN AUTOMATION ENG
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products