Unlock instant, AI-driven research and patent intelligence for your innovation.

A Method of Scheduling Tasks in Batches Based on Programming Language

A programming language and task technology, applied in the direction of multi-program device, program control design, program startup/switching, etc., can solve problems such as server burden, time-consuming, program errors, etc., to reduce return failures, ensure safety, The effect of improving the update speed

Active Publication Date: 2022-02-01
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to solve the problems existing in the prior art, the purpose of the present invention is to provide a method for scheduling tasks in batches based on programming language, to solve the problem that when the coroutine executes a large number of tasks, it takes a long time, and it is easy to cause the program to fail due to network or other factors. Technical issues that go wrong, waste time, and tax servers

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 Method of Scheduling Tasks in Batches Based on Programming Language
  • A Method of Scheduling Tasks in Batches Based on Programming Language
  • A Method of Scheduling Tasks in Batches Based on Programming Language

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The following description serves to disclose the present invention to enable those skilled in the relevant art to carry out the present invention. The embodiments in the following description are only examples, and those skilled in the relevant art can conceive of other obvious modifications that fall within the protection scope of the present invention.

[0030] In programming languages, loop nesting is a common method for batch processing instructions, and loop nesting can also be used to generate certain regular strings. First, set the variable for the inner loop, and use the characteristic that the upper and lower limits change with the variable, so that the loop nesting will automatically update the upper and lower limits of the inner loop after executing a loop and enter the next loop, so as to reach the limit of the inner loop. The upper and lower limits follow up the effect of the upper and lower limits according to the outer loop to complete the creation of tas...

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 discloses a method for scheduling tasks in batches based on a programming language, which includes obtaining access links from target webpages, creating links in batches, analyzing the rules of similar links, creating and executing them in batches through an upper limit following algorithm, and linking the links Store it in the mongoDB database, and update the link in the database through the task execution result. The present invention implements the creation of coroutine tasks in batches through loop nesting, optimizes the memory occupied by the creation of coroutine tasks, effectively reduces the failure of returning results caused by the interruption of coroutine tasks, and causes the loss of business processing and time; Strings are converted and directly stored in the database as KEY values, which effectively shortens the retrieval time of necessary strings required for task processing, thereby improving the stability and efficiency of completing coroutine tasks.

Description

technical field [0001] The invention relates to the technical field of computer software, in particular to a method for scheduling tasks in batches based on a programming language. Background technique [0002] Coroutine is a lightweight thread, and its scheduling switching is faster than multi-threading and multi-process. However, the execution method of the coroutine is to execute the unblocked part of all tasks, and then return the execution results of all tasks uniformly after the unblocked part of all tasks is executed. In the process of coroutine executing tasks, it is necessary to store a specific string in the database first, and then obtain it from the database when needed, and instantiate the coroutine. When the number of strings is large, this process will take up a lot of storage space. Furthermore, when all the non-blocking parts are executed, the execution result is returned, and the execution result is updated to the database by traversal. When the amount o...

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/48G06F16/25
CPCG06F9/4881G06F16/258
Inventor 毕可骏刘楚雄唐娟
Owner SICHUAN CHANGHONG ELECTRIC CO LTD