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

FIFO (first-in first-out) message queue management method and device based on finite depth

A first-in, first-out, queue management technology, which is applied in the field of management methods and management devices for first-in first-out message queues, and can solve the problems of discarding messages and enqueuing tasks, affecting system performance, and frequent switching of dequeuing tasks.

Active Publication Date: 2013-08-14
MAIPU COMM TECH CO LTD
View PDF4 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is: to propose a first-in-first-out message queue management method and device based on a limited depth, and force the operating system to dispatch the queue when the number of messages cached in the queue has not reached the maximum depth of the queue Tasks process messages out of the queue, solving the problems in traditional technology that may cause discarding of messages due to full queues and frequent switching of tasks entering and leaving the queue, which may affect system performance

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
  • FIFO (first-in first-out) message queue management method and device based on finite depth
  • FIFO (first-in first-out) message queue management method and device based on finite depth

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0031] The scheme of the present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0032] Take the realization of the present invention in the vxWorks operating system as an example (but its basic idea is not limited to the vxWorks operating system):

[0033] The message queue management system generates a FIFO queue Queue, the queue depth is set to MAX_QUEUE_NUM messages (or the number of bytes), multiple enqueue tasks and one dequeue task. Set the enqueue task and the dequeue task to have the same priority as P, and set the threshold of the number of buffered messages (or the number of message bytes) for dispatching the dequeue task to schedQThreshold, and set schedQThreshold to the message queue depth one-half of.

[0034] Assuming that the queue head pointer in the FIFO queue is QHEAD at a certain moment, and the queue tail pointer is QTAIL, the number of buffered messages in the queue is:

[0035] (MAX_QUEUE_NUM+Q...

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 relates to the field of computer communication, discloses an FIFO message queue management method based on finite depth, and solves the problems of message discard caused by a full queue, as well as influence on the system performance due to frequent switching between an enqueue task and a dequeue task. The key points of the technical scheme of the FIFO message queue management method comprise the steps that the dequeue task and the enqueue task are set with the same priority, on the condition of processing a great amount of messages, and frequent switching between the enqueue task and the dequeue task is avoid, so that the system performance is not affected; and simultaneously, a cache message threshold for scheduling the dequeue task is set, the cache message number in the message queue is monitored, and once the threshold is exceeded, the scheduling of the dequeue task is accelerated immediately to avoid the situation of message discard caused by the full queue. Besides, the invention further discloses an FIFO message queue management device based on the finite depth. The FIFO message queue management method and device are suitable for message management.

Description

technical field [0001] The invention relates to the field of computer communication, in particular to a management method and management device based on a finite-depth first-in-first-out message queue. Background technique [0002] In FIFO (First in, First out, first in first out) message queue management of limited depth (queue depth can be the maximum number of messages or bytes that can be buffered by the queue), the general processing method in the prior art is: The priority of the enqueue task is lower than that of the dequeue task. After the enqueue task enqueues the message, the dequeue task will be awakened immediately to process the message out of the queue. Therefore, there will be no case of discarding messages because the queue is full, but each processing a message will cause a switch between the enqueue task and the dequeue task, and the overhead of task switching in the operating system is relatively large. Therefore, such a queue management method is not eff...

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
IPC IPC(8): H04L12/863
Inventor 何三波
Owner MAIPU COMM TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More