Method and device for complex time sequence processing queue dynamic prediction

A technology of dynamic prediction and queuing, applied in the direction of machine execution devices, etc., can solve the problems of easy generation and complex logic of executing commands.

Inactive Publication Date: 2013-05-15
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the embodiments of the present invention is to provide a method and device for dynamic prediction of complex sequentia

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 complex time sequence processing queue dynamic prediction
  • Method and device for complex time sequence processing queue dynamic prediction
  • Method and device for complex time sequence processing queue dynamic prediction

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] like figure 1 Shown is a flow chart of the dynamic prediction method for complex time-sequence processing queues provided by the present invention. For ease of description, only the parts related to the embodiments of the present invention are shown.

[0034] In step S101, all command operations are correspondingly divided into one or more atomic operations in advance.

[0035] In the embodiment of the present invention, the so-called atomic operation refers to an operation that will not be interrupted by the thread scheduling mechanism; once such an operation starts, it will run until it ends. The logic performed by atomic operations cannot be divided into smaller parts at the business level. Atomic operations do not depend on each other, and atomic operations can be reused. Before executing command operations, according to the indivisible characteristics of atomic operations, all command operations are divided into one or more corresponding atomic operations in advan...

Embodiment 2

[0048] figure 2 The schematic diagram of the structure of the device for dynamic prediction of the complex sequential processing queue provided by the embodiment of the present invention, for the convenience of description, only shows the part related to the embodiment of the present invention.

[0049] The device can be a software unit, a hardware unit, or a combination of software and hardware built into electronic equipment such as computers, televisions, and mobile phones, or integrated into these electronic equipment or application systems of electronic equipment as an independent pendant. in:

[0050] The atomic division unit 21 is configured to divide all command operations into one or more atomic operations in advance.

[0051] In the embodiment of the present invention, the so-called atomic operation refers to an operation that will not be interrupted by the thread scheduling mechanism; once such an operation starts, it will run until it ends. The logic performed b...

Embodiment 3

[0062] image 3 It is a flow chart of an example of an upload operation example of a method for dynamically predicting complex timing processing queues provided by an embodiment of the present invention, and its specific execution process is as follows:

[0063] In step S301, the upload operation is divided into two atomic operations of updating directory and uploading file;

[0064] In step S302, an upload command is initiated, and two atomic operations of updating directory and uploading file are added to the queue;

[0065] In step S303, perform an atomic operation of updating the directory;

[0066] In step S304, determine whether to perform the atomic operation of uploading files, if so, perform step S307, otherwise perform step S305 or S306;

[0067] In the embodiment of the present invention, after performing the directory update operation, the user needs to further determine whether to continue to perform the atomic operation of uploading files.

[0068] In step S30...

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 belongs to the field of computer software, and provides a method and a device for complex time sequence processing queue dynamic prediction. The method comprises that all order operations are respectively and correspondingly divided into one or a plurality of atomic operations in advance; an order operation executing instruction is received, the corresponding atomic operations executing the order operations are added into a queue; and the atomic operations in the queue are carried out in sequence. According to the method and the device, logic complexity caused when the order operations are carried out is greatly simplified, and generating rate of BUG is reduced.

Description

technical field [0001] The invention belongs to the field of computer software, and in particular relates to a method and a device for dynamic prediction of complex sequence processing queues. Background technique [0002] Nowadays, when implementing a certain command (such as uploading, deleting, etc.), the following two methods are generally used to realize it. [0003] First, when a traditional application program executes a certain command, it basically executes in a preset order, that is, executes sequentially following a preset logic. In such cases, there are very few events that can change the pre-set execution flow, and these events mainly involve exceptions. Therefore, it is easy to generate exceptions by sequentially executing commands through the traditional method, which makes the maintenance cost too high. [0004] Second, the command is executed through the state machine. A state machine is actually a directed graph consisting of a set of nodes and a set 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
IPC IPC(8): G06F9/30
Inventor 邓宇峰李静
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products