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

Task scheduling method and device based on multi-factor cooperation and storage medium

A task scheduling and multi-factor technology, applied in multi-programming devices, program startup/switching, resource allocation, etc., can solve problems such as high concurrent task backlog, untimely task scheduling, memory crash, etc.

Active Publication Date: 2020-12-04
SHENZHEN TIANYUAN DIC INFORMATION TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is to provide a task scheduling method, device, scheduling equipment and storage medium based on multi-factor coordination, aiming to solve the existing In the task scheduling method, the task scheduling is not timely, the backlog of high-concurrency tasks, and the memory crash caused by the high load of the scheduling execution server

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
  • Task scheduling method and device based on multi-factor cooperation and storage medium
  • Task scheduling method and device based on multi-factor cooperation and storage medium
  • Task scheduling method and device based on multi-factor cooperation and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] see figure 1 , figure 1 It is a schematic flowchart of a task scheduling method based on multi-factor coordination provided by an embodiment of the present invention.

[0058] Such as figure 1 As shown, the task scheduling method based on multi-factor coordination provided by the first embodiment of the present invention is used to schedule each task to be scheduled to each scheduling sub-server to run the task to be scheduled. The method includes:

[0059] S11. Evoking the tasks to be scheduled, and adding the tasks to be scheduled to the waiting queue;

[0060] S12. Define a priority for each task to be scheduled according to the importance of each task to be scheduled;

[0061] S13. Calculate the first scheduling factor of each scheduling sub-server, wherein the first scheduling factor is related to the resource situation of the scheduling sub-server;

[0062] S14. Calculate the second scheduling factor of each scheduling sub-server, wherein the second scheduling...

Embodiment 2

[0068] see Figure 2 to Figure 5 , figure 2 Provided for the embodiment of the present invention figure 1 The specific flow diagram of step S13, image 3 Provided for the embodiment of the present invention figure 1 The specific schematic flow chart of step S14, Figure 4 Provided for the embodiment of the present invention figure 1 The specific schematic flow chart of step S15, Figure 5 Provided for the embodiment of the present invention figure 1 Schematic diagram of the specific flow of step S16.

[0069] Compared with the task scheduling method based on multi-factor coordination provided in the first embodiment of the present invention, the second embodiment of the present invention designs steps S13-S16 in detail.

[0070] Such as figure 2 As shown, step S13 specifically includes:

[0071] S131. Obtain the remaining CPU or remaining memory of each scheduling sub-server;

[0072] S132. Respectively determine whether the remaining CPU or remaining memory of eac...

Embodiment 3

[0098] see Figure 6 , Figure 6 It is a schematic flowchart of another task scheduling method based on multi-factor coordination provided by an embodiment of the present invention.

[0099] Compared with the task scheduling method based on multi-factor cooperation provided in the first embodiment of the present invention, the third embodiment of the present invention has different steps.

[0100] Such as Figure 6 As shown, the task scheduling method based on multi-factor coordination provided by the third embodiment of the present invention includes:

[0101] S21. Evoking the tasks to be scheduled, and adding the tasks to be scheduled to the waiting queue;

[0102] S22. According to the importance of each task to be scheduled, define a priority for each task to be scheduled;

[0103] S23. Perform high-frequency heartbeat detection on each scheduling sub-server to obtain a dead scheduling sub-server, wherein the dead scheduling sub-server does not receive tasks to be schedu...

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 task scheduling method and device based on multi-factor cooperation and a storage medium, and the method comprises the steps: arousing a to-be-scheduled task, and adding the to-be-scheduled task into a waiting queue; defining priorities for the to-be-scheduled tasks according to the importance degrees of the to-be-scheduled tasks; calculating a first scheduling factor anda second scheduling factor of each scheduling sub-server and a third scheduling factor of the related platform, the first scheduling factor being related to the resource condition of the scheduling sub-server, the second scheduling factor being related to the load condition of the scheduling sub-server, and the third scheduling factor being related to the resource condition of the related platform; and scheduling each to-be-scheduled task to each scheduling sub-server according to the priority of each to-be-scheduled task, the first scheduling factor, the second scheduling factor and the thirdscheduling factor. According to the method, the effect of timely scheduling can be achieved, and the phenomenon of memory crash caused by high concurrent task backlog and high load of the schedulingsub-server is avoided.

Description

technical field [0001] The present invention relates to the field of computer application technology, in particular to a task scheduling method, device, and storage medium based on multi-factor coordination. Background technique [0002] Task scheduling is an important part of the operating system, and for real-time operating systems, task scheduling will directly affect its real-time performance. At present, the algorithm types of task scheduling can be divided into two types, one is based on time-driven task scheduling algorithm, commonly used tools include quartz, linux crontab and JAVA's own Timer, etc.; the other is based on event-driven tasks Scheduling Algorithm. The time-driven task scheduling algorithm mainly performs specific operations at a specific time according to the pre-configured time. The event-driven task scheduling algorithm mainly arranges the execution order of tasks according to the priority and sequence of events. [0003] For enterprise data proce...

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/48G06F9/50
CPCG06F9/4881G06F9/505G06F2209/5021
Inventor 陈国礼彭传强杨静何国庆罗赞陈友
Owner SHENZHEN TIANYUAN DIC INFORMATION TECH CO LTD