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

Method for realizing communication process zero copy information queue

A technology for message queues and communication processes, applied in the field of implementing zero-copy message queues, can solve problems such as multiple memory copies, and achieve the effects of improving communication rates, saving system resources, and reducing memory usage

Inactive Publication Date: 2007-04-25
江苏三农乐购电子商务有限公司
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The purpose of the present invention is to overcome the shortcomings of multiple memory copies in the existing operating system message queues, and propose a method for realizing zero-copy message queues in the communication process, so as to ensure that there is no memory copy in the message communication process

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
  • Method for realizing communication process zero copy information queue
  • Method for realizing communication process zero copy information queue
  • Method for realizing communication process zero copy information queue

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] Figure 1 introduces the implementation of the VxWorks message queue. When the message queue is initialized, a message queue is allocated and initialized in the system space. It pre-allocates enough buffer space with the maximum number of messages it can queue and the maximum byte length of each message. When the task and ISR call the msgQSend() function to send a message to the message queue, if no task is waiting for the message in the queue, then the message enters the buffer of the message queue. If there are tasks waiting for a message on the queue, the message is immediately submitted to the first waiting task. When the message queue is full, that is, when the queue has no available buffers, the sending task waits for a certain timeout. When the timeout is NO_WAIT(0), the sending task returns an error immediately. When the timeout is WAIT_FOREVER(-1), the sending task enters the blocking task queue. When the timeout is other, the sending task is delayed for a pe...

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 present invention relates to the method of realizing zero-copy message queue during communication. The zero-copy message queue is one circulating buffer area comprising pointers to message body data, and its data structure includes message queue head pointer, tail pointer, current message number, total message number, repellent operation signal amount, counted signal amount, etc. The present invention ensures no memory copy during message communication, and may be used widely in embedded operation system. The comparison test with VxWorks message queue shows that the present invention has greatly raise communication rate, lowered memory occupation during communication and saving in system resource. In addition, the present invention supports several operation systems and is favorable to transplantation of application program in different operation systems.

Description

technical field [0001] The invention relates to a method for realizing communication between operating system tasks or threads, in particular to a method for realizing zero-copy message queue in the communication process, which is suitable for communication between embedded real-time operating system tasks through message queue communication. Background technique [0002] As the world economy enters the new era of digital economy, telecommunication technology and information network technology have achieved unprecedented rapid development. The huge change from the network to the business in the communication field is driving the continuous development of the data service, and the flow of the data service may exceed the flow of the voice service within 2 to 3 years. [0003] The business based on data packet switching will cover the entire traditional telecommunication business within 5 to 10 years. Therefore, the communication mode of signaling flow in circuit switching of...

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/06G06F9/45
Inventor 谢鑫
Owner 江苏三农乐购电子商务有限公司