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

Method and device for synchronizing data queues of different devices

A technology between data queues and devices, applied in the direction of multi-programming devices, etc., can solve problems such as inability to connect, unrecoverable queues, and queue breaks.

Inactive Publication Date: 2013-04-03
SHANGHAI DINGZHU COMM TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When multiple users apply for and release queue elements at the same time, it is difficult to strictly guarantee the order of messages synchronized to the standby device, unless they are sorted on the active device, which will affect the efficiency of processing
If the queue element applied for later arrives at the backup device first, at this time, the queue element is not at the head of the one-way queue, and it needs to traverse the queue to find it, and since the one-way queue only has the next pointer, if an element is deleted from the middle, the queue will inevitably lead to broken, unable to connect
Conversely, when the queue elements are released out of order, the queue cannot be restored

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 and device for synchronizing data queues of different devices
  • Method and device for synchronizing data queues of different devices

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] Next, a detailed implementation of a method and device for synchronizing data queues between different devices according to the present invention will be described in detail with reference to the accompanying drawings.

[0017] attached figure 1 The flow chart of the steps of the method described in the specific embodiment of the present invention is shown, including the following steps: step a, mark all resources of the same type in the first device into a one-way queue, and each queue element in the queue represents a resource; step b. Mark all similar resources in the second device as one-way queues, and set the status of all queue elements in the queue to idle in the second device, and the first device and the second device are mutually active, Standby device; step c, when the user applies for or releases a queue element from the first device, if the queue element is applied, then execute steps d1-d3; if the queue element is released, then execute steps e1-e3; step ...

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 a method for synchronizing data queues of different devices, which comprises the following steps: setting a state label for each queue element; after the queue element of the first device is applied or released, changing the label of the queue element in the second device, regenerating a queue for all the queue elements of which the labels are idle in the second device after switching between the first device and the second device, and the first device and the second device are main equipment and standby equipment with each other. After adding a state label to each queue element, the invention avoids disordered time sequences in the backup device in the subsequent backup process; even if the time sequence of the message 'the queue element is applied' received by the second device does not conform to the actual time sequence of the first device, the change of the state label of the queue element cannot be affected, which means that asynchronous time sequences of the two devices can not lead to disorder; and therefore, the invention is especially suitable for multiuser environment.

Description

technical field [0001] The invention relates to the technical field of communication and computer, in particular to a method and device for synchronizing data queues between different devices. Background technique [0002] The communication field has very strict requirements for stability. Many devices need to be equipped with a backup machine at the same time. When the main device fails, the backup device will be activated immediately to replace the work, so as to achieve seamless switching, so that users will not feel the impact of equipment failure. Such a setting requires that the data between the primary device and the backup device must be strictly synchronized, otherwise it will easily lead to chaos in the entire communication network and affect the communication services of users. [0003] When the primary device fails, the backup device must take over all functions of the original device in real time. Therefore, during normal use of the primary device, changes in ...

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/46
Inventor 顾明毅
Owner SHANGHAI DINGZHU COMM TECH
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