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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


