A chain dependence analysis method and system for a directed acyclic graph

A directed acyclic graph and dependency analysis technology, applied in the blockchain field, can solve the problems of reducing real-time performance, a lot of time consumption, and poor estimation, achieving high real-time efficiency, less scanning operations, and reduced pressure. Effect

Active Publication Date: 2019-04-26
杭州雅拓信息技术有限公司
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The problem in Solution 1 is: Since the analysis of view’s dependence on tasks takes a certain amount of time, the scanning time interval cannot be too small and difficult to predict, and the real-time performance is relatively poor.
The problem in Solution 2 is: the number of tasks should not be too large, otherwise each polling of waiting tasks and analyzing the dependencies of waiting tasks will take a lot of time and reduce real-time performance; high-speed scanning will occupy a lot of server resources
However, regardless of scheme 1 or scheme 2, there is a problem that the scanning programs of the two schemes will always run regardless of whether the tasks have been completed, which will cause a waste of server 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
  • A chain dependence analysis method and system for a directed acyclic graph
  • A chain dependence analysis method and system for a directed acyclic graph
  • A chain dependence analysis method and system for a directed acyclic graph

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] Such as figure 1 As shown, a directed acyclic graph chain dependency analysis method, including the following steps:

[0040] S100: Use the global scanner to detect whether the previous batch tasks of the current batch have been completed;

[0041] S200: If the previous batch of tasks has been completed, instantiate all the tasks of the current batch;

[0042] S300: run all root node tasks;

[0043] S400: judging whether all root node tasks are completed normally;

[0044] S500: If all the root node tasks have been completed normally, monitor and run all subsequent tasks to which the respective root node tasks belong through the node scanner;

[0045] S600: If all the root node tasks of the current batch and the subsequent tasks to which they belong have all finished running normally, perform batch running of the subsequent batch.

[0046] In addition to the steps above, the following steps are included:

[0047] Initial configuration

[0048] Configure the task m...

Embodiment 2

[0059] Such as figure 2As shown, a directed acyclic graph chain dependency analysis system includes: a global scanning module, an instantiation module, a running module, a judgment module and a node scanning module. The global scanning module is used to detect whether the previous batch tasks of the current batch have been completed through the global scanner; the instantiation module is used to instantiate all the tasks of the current batch if the previous batch tasks have been completed; The running module is used to run all root node tasks; the judging module is used to judge whether all root node tasks are completed normally; the node scanning module is used to scan the respective root nodes through the node scanner if all root node tasks have been completed normally. All subsequent tasks to which the task belongs are monitored and run; if all the root node tasks of the current batch and the subsequent tasks to which they belong have all completed normal operation, the su...

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 provides a chain dependence analysis method and system for a directed acyclic graph, and the method comprises the following steps: detecting whether a previous batch task of a current batch is completed or not through a global scanner; If the previous batch of tasks are completed, instantiating all tasks of the current batch; Running all root node tasks; Judging whether all root nodetasks normally run or not; If all the root node tasks are normally operated, monitoring and operating all subsequent tasks to which respective root node tasks belong through a node scanner; And if all the root node tasks of the current batch and the subsequent tasks to which the root node tasks belong are normally operated, running the subsequent batch. Under the condition that server resources are limited, high-efficiency analysis on DAG chain dependence and real-time performance of task execution are achieved, when the current batch runs, only follow-up tasks are monitored in real time through the node scanners, scanning operation is few, and real-time efficiency is high.

Description

technical field [0001] The invention relates to the technical field of block chains, in particular to a chain dependency analysis method and system for directed acyclic graphs. Background technique [0002] There are two solutions for the chain dependency analysis of directed acyclic graphs: one is to create a waiting task view, which monitors the task running table and task dependency table in real time, and adds tasks that can enter the running queue to the view Among them, the program scans the view at a certain time interval and runs the waiting tasks; the other is that the program scans the waiting tasks in the task running table in real time, analyzes whether the pre-dependencies of all waiting tasks have been completed, and runs the waiting tasks if completed . The problem in Solution 1 is: Since the analysis of view’s dependence on tasks takes a certain amount of time, the scanning time interval cannot be too small and difficult to predict, and the real-time perform...

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 Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3612
Inventor 王联军马平男王有兵陈如亨
Owner 杭州雅拓信息技术有限公司
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