Efficient sampling port buffer management method

A buffer management and port technology, applied in the direction of memory address/allocation/relocation, multi-program device, etc., can solve problems such as performance degradation, achieve functional characteristics, meet functional characteristic requirements and time requirements, and solve performance bottlenecks Effect

Active Publication Date: 2015-06-03
AVIC NO 631 RES INST
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] If new messages are written in the process of reading messages and need to be read again, the performance of the above two methods will be further degraded

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
  • Efficient sampling port buffer management method
  • Efficient sampling port buffer management method
  • Efficient sampling port buffer management method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention provides an efficient sampling port buffer management method, the method is specifically as follows:

[0019] 1. When the sampling port is initialized, two buffers are allocated for the sampling port. For the convenience of expression, they are named BUFFER_1 and BUFFER_2 respectively. The two pointers of tempData and validData are used to point to these two buffers, and a write buffer count counter is saved at the same time.

[0020] 2. When the source port writes a message, write the message into the space pointed to by tempData, such as figure 1 shown in BUFFER_1.

[0021] 3. After the message is written, close task scheduling, point tempData to the buffer pointed to by validData, and point validData to the buffer pointed to by tempData, that is, exchange pointers, update the write buffer count counter at the same time, add 1 to the counter, and then start task scheduling. The destination port always reads data from the buffer pointed to by val...

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

Disclosed is an efficient sampling port buffer management method. The efficient sampling port buffer management method comprises 1) distributing two buffer zones and a write buffer counter for a sampling port during initialization of the sampling port; 2) during data write-in of a source port, writing data into the buffer zone pointed by a temporary pointer; 3) after data write-in is completed, switching the pointers pointing to the two buffer zones, and meanwhile updating a write buffer counter and adding the number by one in the write buffer counter; 4) during data reading from the source port, firstly, storing the counting value of the write buffer counter, then reading data from the buffer zone pointed by a valid pointer, after reading is completed, comparing the stored counting value with the latest counting value of the write buffer counter to determine whether the counting value of the write buffer counter changes, if so, repeating the step 4) until the counting value of the write buffer counter has no change, and if not, completing the reading; 5) sending and writing messages by calling the sampling port. The efficient sampling port buffer management method can improve the communication efficiency of the sampling port.

Description

technical field [0001] The invention belongs to the technical field of computer software control, and relates to a high-efficiency sampling port buffer management method. Background technique [0002] In order to meet the requirements of modularized and integrated avionics IMA system, a multi-partition operating system has emerged. The salient feature of a multi-partition operating system is that each partition is isolated from each other in space and time. Inter-partition communication is the main way to achieve information exchange between partitions. The sampling port is an important communication method for inter-partition communication. The function of the sampling port It is required to maintain only one message. When the source port writes a message, no matter whether the previously written message is read or not, the new message will overwrite the previous message; the destination port only reads the most recently arrived message. The sampling port needs to support ...

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): G06F12/08G06F9/46
Inventor 贠海顺叶宏韩炜李运喜任晓瑞徐晓光时磊陈晓磊侯光霞梅涛曹原张东仝敏卫一芃杨晓宁杨弋高东明
Owner AVIC NO 631 RES INST
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