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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 