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

Chain dependency analysis method and system for 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, poor real-time performance, and a lot of time consumption, and achieve the effect of reducing pressure, high real-time efficiency, and less scanning operations

Active Publication Date: 2022-03-15
杭州雅拓信息技术有限公司
View PDF0 Cites 0 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
  • Chain dependency analysis method and system for directed acyclic graph
  • Chain dependency analysis method and system for directed acyclic graph
  • Chain dependency analysis method and system for 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 present invention provides a directed acyclic graph chain dependency analysis method and system, wherein the method includes the following steps: using a global scanner to detect whether the previous batch tasks of the current batch have been completed; If the sub-tasks have been completed, instantiate all tasks in the current batch; run all root node tasks; judge whether all root node tasks are running normally; if all root node tasks have all run normally, pass the node scanner Monitor and run all subsequent tasks to which the respective root node tasks belong; if all the root node tasks of the current batch and the subsequent tasks to which they belong have all completed normal operation, the subsequent batches will be run. In the case of limited server resources, the present invention can efficiently analyze DAG chain dependencies and real-time task execution. When the current batch is running, only follow-up tasks can be monitored in real time through the node scanner, and its scanning operations are less, real-time Higher efficiency.

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 Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3612
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