Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Message scheduling method and device

A scheduling method and message technology, applied in the computer field, can solve the problems of consuming large cache resources and incomplete message scheduling, etc.

Active Publication Date: 2017-11-10
北京东土军悦科技有限公司 +1
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] However, in this way, on the one hand, since the tail pointer only points to the latest Cell that has entered the queue, it is not possible to determine whether the last Cell of a message has entered the queue through the tail pointer, and there is a problem of scheduling incomplete messages.
On the other hand, due to a certain delay in the complete scheduling process, there may be multiple Cells that have initiated scheduling requests but have not yet completed the actual dequeue, which will consume a lot of cache resources

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
  • Message scheduling method and device
  • Message scheduling method and device
  • Message scheduling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all of them. Based on the embodiments of the present application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present application.

[0064] In order to schedule the packets in the queue, only the complete packets are scheduled to ensure the continuity of the packets, accurately control the number of cells that have initiated the scheduling request but have not yet completed the actual dequeue, and reduce the consumption of cache resources , in the embodiment of the present application, a message scheduling method is designed. The method is to first point the message tail poi...

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 embodiment of the invention discloses a message scheduling method and device. The method comprises the steps of monitoring an enqueue state of a queue; when it is determined that the enqueue state represents that a message is enqueued, updating a message tail pointer of the queue, wherein the message tail pointer is used for pointing to the last cell of the last complete message in the queue; calculating a difference value between a scheduling head pointer and a dequeue head pointer of the queue and obtaining a scheduling difference value, wherein the scheduling head pointer is used for pointing to the cell currently requested to be scheduled, and the dequeue head pointer is used for pointing to the cell which is scheduled at the last; and when it is determined that the scheduling difference value is smaller than a preset threshold value and the scheduling head point is smaller than the message tail pointer, scheduling messages in the queue. The continuity of the messages is ensured, and the number of the cells which initiate scheduling requests and are not actually dequeued can be precisely controlled, so the consumption of cache resources can be reduced.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a message scheduling method and device. Background technique [0002] In a computer network, terminals usually buffer messages through queues. The so-called queue in computer science is a first-in-first-out linear table, which only allows deletion operations at the front end of the table to leave the queue, and insertion operations at the back end of the table to enter the queue. [0003] Among them, the end that performs the delete operation is called the head of the team, and the end that performs the insertion operation is called the tail of the team. Each queue forms a linked list, and dynamically manages and caches messages through the linked list, so that the messages in the queue can be scheduled. [0004] refer to Figure 1a As shown in the schematic diagram of the queue, the queue contains several messages, and each message contains several cells (Cells...

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
CPCH04L47/50
Inventor 吴祖生
Owner 北京东土军悦科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products