Task scheduling method and device
By determining the task priority and weight coefficient and scheduling the task volume, the problem of high-priority tasks occupying resources in batch tasks causing low-priority tasks to wait is solved, and efficient execution of tasks is achieved.
Patent Information
- Application Number
- CN202010189939.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-18
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-03-18
AI Technical Summary
When executing batch tasks, the existing technology ignores the priority of the tasks, resulting in important tasks not being processed in time, or high-priority tasks obtaining all resources, and low-priority tasks waiting for a long time, resulting in low task execution efficiency.
By determining the priority of the tasks to be executed, calculating the weight coefficient of each priority, and scheduling the amount of tasks of each priority based on the weight coefficient and the amount of parallel execution tasks, so that low-priority tasks can be completed even when high-priority tasks are not completed. Ability to obtain resources for execution.
It ensures the simultaneous execution of all priority tasks, improves the overall execution efficiency of tasks, and avoids low-priority tasks waiting for a long time due to insufficient resources.
Smart Images

Figure CN111400010B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a task scheduling method and device. Background Art
[0002] There are many applications for executing batch tasks in current business processing systems. When executing batch tasks, some methods ignore the priority of tasks, resulting in important tasks not being processed in time. Although some methods take the priority of tasks into consideration, when executing tasks, high-priority tasks always obtain all resources, and low-priority tasks can only be executed after all high-priority tasks have been completed. If high-priority tasks are constantly added, low-priority tasks may be in a waiting state for a long time due to the inability to obtain resources, resulting in low overall task execution efficiency.
[0003] Currently, no effective solution has been proposed to the above problems. Summary of the invention
[0004] An embodiment of the present invention provides a task scheduling method for improving the execution efficiency of tasks, the method comprising:
[0005] Determine the priority of each task in the batch of tasks to be executed;
[0006] According to at least two priorities of the batch task, a weight coefficient of each priority is determined;
[0007] According to the weight coefficient of each priority level and the total number of tasks that can be executed in parallel, the number of tasks that can be executed in parallel is determined, wherein the total number of tasks that can be executed in parallel is the maximum number of tasks that can be executed in parallel by the system at one time;
[0008] Schedule tasks of different priorities to be executed in parallel according to the amount of tasks that can be executed in parallel at each priority level.
[0009] An embodiment of the present invention provides a task scheduling device for improving the execution efficiency of tasks, the device comprising:
[0010] A priority determination module, used to determine the priority of each task in the batch of tasks to be executed;
[0011] A weight coefficient determination module, used to determine the weight coefficient of each priority level according to at least two priorities of the batch task;
[0012] A task quantity determination module is used to determine the quantity of tasks that can be executed in parallel for each priority level according to the weight coefficient of each priority level and the total number of tasks that can be executed in parallel, wherein the total number of tasks that can be executed in parallel is the maximum number of tasks that can be executed in parallel by the system at one time;
[0013] The execution module is used to schedule tasks of different priorities to be executed in parallel according to the amount of tasks that can be executed in parallel at each priority level.
[0014] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the above-mentioned task scheduling method is implemented when the processor executes the computer program.
[0015] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program for executing the above-mentioned task scheduling method.
[0016] The embodiment of the present invention is as follows: determining the priority of each task in the batch tasks to be executed; determining the weight coefficient of each priority according to at least two priorities of the batch tasks; determining the amount of tasks that can be executed in parallel for each priority according to the weight coefficient of each priority and the total amount of tasks that can be executed in parallel; and scheduling tasks for parallel execution of each priority according to the amount of tasks that can be executed in parallel for each priority. The present invention determines the amount of tasks that can be executed in parallel for each priority based on the weight coefficient of each priority, so that low-priority tasks have certain system resources to be executed, thereby ensuring that tasks of all priorities are executed simultaneously and improving the overall execution efficiency of tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0018] Figure 1 A schematic diagram of a task scheduling method process in an embodiment of the present invention;
[0019] Figure 2 A schematic diagram of adjusting the priority task amount in an embodiment of the present invention;
[0020] Figure 3 is a schematic diagram of the structure of a task scheduling device in an embodiment of the present invention;
[0021] Figure 4 A schematic diagram of another structure of a task scheduling device according to an embodiment of the present invention;
[0022] Figure 5 It is a schematic diagram of adjusting the module structure in an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] Before introducing the embodiments of the present invention, the professional terms involved in the embodiments of the present invention are first introduced.
[0025] Starving tasks: tasks that are always in a waiting state during batch task execution;
[0026] Asynchronous and batch tasks: The English abbreviation in the data dictionary is Aschn_Tsk, and it is generally called Task in the framework code. It is a collection of the smallest schedulable unit jobs. According to the scheduling time, it can be divided into periodic tasks, real-time tasks, and scheduled tasks.
[0027] Job: The English abbreviation of Job in the data dictionary is Job, and it is generally called Job in the code. It is the smallest unit that can be scheduled in a batch task. Several jobs form a task in the form of sequential, branched, and merged job flows. It is a functional module that can complete a specific operation.
[0028] Instance: The English abbreviation in the data dictionary is Exmp, and it is generally called Exmp or Instance in the code. It includes task instances and job instances, which are stored in the task instance table (S08T1_ASCHN_TSK_EXMP) and the job instance table (S08T1_JOB_EXMP) respectively.
[0029] Next, the inventor's discovery of the technical problem and his idea of proposing a task scheduling method are introduced.
[0030] When executing tasks in batches, each task has a different priority. In the prior art, in the process of executing batch tasks, high-priority tasks always obtain system resources first, causing low-priority tasks to always wait for execution. At this time, low-priority tasks are in a starving state. Since the inventor has discovered the above technical problems, a task scheduling method is proposed. The method mainly uses a weight algorithm to enable low-priority tasks to obtain a certain proportion of system resources when high-priority tasks have not been completed, so that they can be executed. This ensures that high-priority tasks are executed first, while low-priority tasks are not in a starving state due to inability to obtain resources. The task scheduling method provided by an embodiment of the present invention is introduced in detail below.
[0031] The embodiment of the present invention provides a task scheduling method to improve the execution efficiency of tasks. Figure 1FIG. 1 is a schematic diagram of a task scheduling method flow in an embodiment of the present invention. Figure 1 As shown, the method includes:
[0032] Step 101: Determine the priority of each task in the batch tasks to be executed;
[0033] Step 102: Determine a weight coefficient of each priority level according to at least two priorities of the batch task;
[0034] Step 103: Determine the amount of tasks that can be executed in parallel for each priority level according to the weight coefficient of each priority level and the total amount of tasks that can be executed in parallel;
[0035] Step 104: Schedule tasks of different priorities to be executed in parallel according to the amount of tasks that can be executed in parallel at each priority level.
[0036] like Figure 1 As shown, the embodiment of the present invention is as follows: determining the priority of each task in the batch tasks to be executed; determining the weight coefficient of each priority according to at least two priorities of the batch tasks; determining the amount of tasks that can be executed in parallel for each priority according to the weight coefficient of each priority and the total amount of tasks that can be executed in parallel; scheduling tasks for parallel execution of each priority according to the amount of tasks that can be executed in parallel for each priority. The present invention determines the amount of tasks that can be executed in parallel for each priority based on the weight coefficient of each priority, so that low-priority tasks have certain system resources to be executed, thereby ensuring that tasks of all priorities are executed simultaneously and improving the overall execution efficiency of tasks.
[0037] In specific implementation, in step 101, after obtaining the batch tasks to be executed, the importance and urgency of each task can be determined according to the task information in the batch tasks, and the priority of each task, that is, the priority of each job, can be determined according to the importance and urgency of each task, wherein the priority of the task can include three levels of high, medium and low, and the priority can include multiple levels, which is not limited to the present invention. It is also possible to generate a task instance table and a job instance table according to the task information such as the task number, batch number, status, and planned start time in the batch tasks, so as to facilitate subsequent scheduling, as shown in Table 1 and Table 2.
[0038] Table 1 Task instance table
[0039] name describe Field Type SGL_TSK_ID Task instance number VARCHAR2(80) Primary Key APL_BTCH_NO Application batch number VARCHAR2(600) JFRM_TSK_EXEC_ST_CD Task instance status CHAR(1) PLN_STTM Planned start time CHAR(17)
[0040] Table 2 Job instance table
[0041]
[0042] In specific implementation, in step 102, the weight coefficient of each priority can be calculated according to at least two priorities of the batch task determined in step 101. For example, the batch task includes three priorities of high (A), medium (B), and low (C). The degree of priority can be represented by different numbers. The priorities are: A=0, B=10, C=20, and the priority value range is: 0-100. Then the weight coefficient of priority A can be: 100-0=100; the weight coefficient of priority B can be: 100-10=90; the weight coefficient of priority C can be: 100-20=80. The weight coefficient can also be calculated in other ways, and the present invention is not limited to this. It should be noted that since new tasks can be added to the task pool of batch tasks at any time, there may be a situation where there is only one priority level of tasks in the batch task. In this case, the corresponding number of tasks can be directly obtained in the batch task according to the total number of tasks that can be executed in parallel.
[0043] In one embodiment, step 103, determining the amount of tasks that can be executed in parallel for each priority level according to the weight coefficient of each priority level and the total amount of tasks that can be executed in parallel, may include:
[0044] When the total number of tasks that can be executed in parallel is divisible by the sum of the weight coefficients of each priority level, the number of tasks that can be executed in parallel for each priority level is determined as follows:
[0045]
[0046] In specific implementation, the total number of tasks that can be executed in parallel can be the maximum number of tasks that the system can execute in parallel at one time. When the total number of tasks that can be executed in parallel can be divided by the sum of the weight coefficients of each priority level, the number of tasks that can be executed in parallel for each priority level can be calculated according to formula (1). For example, the total number of tasks that can be executed in parallel is 270, the weight coefficient of priority A is 100, the weight coefficient of priority B is 90, and the weight coefficient of priority C is 80. The sum of the weight coefficients of each priority level is 100+90+80=270. Then the number of tasks that can be executed in parallel for priority A is 270 / 270×100=100, the number of tasks that can be executed in parallel for priority B is 270 / 270×90=90, and the number of tasks that can be executed in parallel for priority C is 270 / 270×80=80.
[0047] In one embodiment, step 103, determining the amount of tasks that can be executed in parallel for each priority level according to the weight coefficient of each priority level and the total amount of tasks that can be executed in parallel, may also include:
[0048] When the total number of tasks that can be executed in parallel cannot be divided by the sum of the weight coefficients of each priority level, the number of tasks that can be executed in parallel for each priority level is determined as follows:
[0049]
[0050] The remaining number of tasks that can be executed in parallel is allocated to the priority with the largest weight coefficient.
[0051] In specific implementation, when the total number of tasks that can be executed in parallel cannot be divided by the sum of the weight coefficients of each priority level, the number of tasks that can be executed in parallel for each priority level can be calculated according to formula (2). For example, the total number of tasks that can be executed in parallel is 300, the weight coefficient of priority A is 100, the weight coefficient of priority B is 90, and the weight coefficient of priority C is 80. The sum of the weight coefficients of each priority level is 100+90+80=270. Then the number of tasks that can be executed in parallel for priority A is The number of tasks that can be executed in parallel with priority B is The number of tasks that can be executed in parallel with priority C is At this time, the remaining number of tasks that can be executed in parallel, 300-100-90-80=30, are all allocated to priority A. The final number of tasks that can be executed in parallel for priority A is 130.
[0052] In specific implementation, in step 104, tasks of different priorities are scheduled to be executed in parallel according to the amount of tasks that can be executed in parallel at each priority level, so that low-priority tasks can have certain system resources to be executed, ensuring that tasks of all priorities are executed simultaneously.
[0053] In order to further save resources, in one embodiment, the method may further include:
[0054] Step 105: When the remaining amount of tasks of any priority level is less than the amount of tasks that can be executed in parallel at that priority level, adjust the amount of tasks that can be executed in parallel at that priority level and the next priority level lower than that priority level.
[0055] Figure 2 FIG. 1 is a schematic diagram of adjusting the priority task amount in an embodiment of the present invention. Figure 2 As shown, in one embodiment, the above step 105 may specifically include:
[0056] Step 1051: Determine the difference between the remaining tasks of the priority level and the tasks of the priority level that can be executed in parallel;
[0057] Step 1052: Add the difference to the amount of tasks that can be executed in parallel at the next priority level lower than the priority level; and use the remaining amount of tasks at the priority level as the amount of tasks that can be executed in parallel at the priority level.
[0058] During the specific implementation, in step 105, when tasks of various priorities are executed in parallel, if the remaining task amount of any priority level is less than the task amount that can be executed in parallel by this priority level, it indicates that there are idle resources for this priority level, and the difference between the remaining task amount of this priority level and the task amount that can be executed in parallel by this priority level can be added to the task amount that can be executed in parallel by the next priority level lower than this priority level, and the remaining task amount of this priority level can be used as the task amount that can be executed in parallel by this priority level, so that the idle resources can be utilized, thereby saving system resources.
[0059] A specific example is given below to facilitate understanding of how the present invention is implemented:
[0060] Step 1: After obtaining the batch tasks to be executed, determine the importance and urgency of each task according to the task information in the batch tasks, and determine the priority of each task according to the importance and urgency of each task;
[0061] Step 2: Calculate the weight coefficient of each priority level based on at least two priorities of the batch task;
[0062] Step 3: When the total number of tasks that can be executed in parallel is divisible by the sum of the weight coefficients of each priority level, the number of tasks that can be executed in parallel of each priority level is calculated according to formula (1); when the total number of tasks that can be executed in parallel is not divisible by the sum of the weight coefficients of each priority level, the number of tasks that can be executed in parallel of each priority level can be calculated according to formula (2) first, and then the remaining number of tasks that can be executed in parallel is allocated to the priority level with the largest weight coefficient;
[0063] Step 4: Schedule tasks of different priorities to be executed in parallel according to the amount of tasks that can be executed in parallel at each priority level;
[0064] Step 5: When the remaining amount of tasks of any priority level is less than the amount of tasks that can be executed in parallel at that priority level, the difference between the remaining amount of tasks of that priority level and the amount of tasks that can be executed in parallel at that priority level shall be added to the amount of tasks that can be executed in parallel at the next priority level lower than that priority level, and the remaining amount of tasks of that priority level shall be used as the amount of tasks that can be executed in parallel at that priority level.
[0065] Based on the same inventive concept, a task scheduling device is also provided in the embodiments of the present invention, such as the following embodiments. Since the principle of solving the problem by the task scheduling device is similar to that of the task scheduling generation method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0066] The embodiment of the present invention provides a task scheduling device for improving the execution efficiency of tasks. Figure 3 FIG. 1 is a schematic diagram of the structure of a task scheduling device in an embodiment of the present invention. Figure 3 As shown, the device comprises:
[0067] The priority determination module 01 is used to determine the priority of each task in the batch tasks to be executed;
[0068] The weight coefficient determination module 02 is used to determine the weight coefficient of each priority level according to at least two priorities of the batch task;
[0069] The task amount determination module 03 is used to determine the amount of tasks that can be executed in parallel for each priority level according to the weight coefficient of each priority level and the total amount of tasks that can be executed in parallel;
[0070] The execution module 04 is used to schedule tasks of different priorities to be executed in parallel according to the amount of tasks that can be executed in parallel at different priorities.
[0071] In one embodiment, the task volume determination module 03 is specifically used to:
[0072] When the total number of tasks that can be executed in parallel is divisible by the sum of the weight coefficients of each priority level, the number of tasks that can be executed in parallel for each priority level is determined as follows:
[0073]
[0074] In one embodiment, the task volume determination module 03 is specifically used to:
[0075] When the total number of tasks that can be executed in parallel cannot be divided by the sum of the weight coefficients of each priority level, the number of tasks that can be executed in parallel for each priority level is determined as follows:
[0076]
[0077] The remaining number of tasks that can be executed in parallel is allocated to the priority with the largest weight coefficient.
[0078] Figure 4 FIG. 1 is another schematic diagram of the structure of the task scheduling device in an embodiment of the present invention. Figure 4 As shown, in one embodiment, the device may also include:
[0079] The adjustment module 05 is used to adjust the amount of tasks that can be executed in parallel at any priority level and at the next priority level lower than the priority level when the amount of remaining tasks at any priority level is less than the amount of tasks that can be executed in parallel at the priority level.
[0080] Figure 5 FIG. 1 is a schematic diagram of adjusting the module structure in an embodiment of the present invention. Figure 5 As shown, the adjustment module 05 module may include:
[0081] Difference calculation unit 051: determines the difference between the remaining tasks of the priority level and the tasks of the priority level that can be executed in parallel;
[0082] The priority task amount adjustment unit 052: adds the difference to the amount of tasks that can be executed in parallel at the next priority level lower than the priority level; and uses the remaining amount of tasks at the priority level as the amount of tasks that can be executed in parallel at the priority level.
[0083] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the above-mentioned task scheduling method is implemented when the processor executes the computer program.
[0084] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program for executing the above-mentioned task scheduling method.
[0085] In summary, the embodiments of the present invention are as follows: determining the priority of each task in the batch tasks to be executed; determining the weight coefficient of each priority according to at least two priorities of the batch tasks; determining the amount of tasks that can be executed in parallel for each priority according to the weight coefficient of each priority and the total amount of tasks that can be executed in parallel; scheduling tasks for parallel execution of each priority according to the amount of tasks that can be executed in parallel for each priority. The present invention determines the amount of tasks that can be executed in parallel for each priority based on the weight coefficient of each priority, so that low-priority tasks have certain system resources to be executed, thereby ensuring that tasks of all priorities are executed simultaneously and improving the overall execution efficiency of tasks.
[0086] When the remaining task amount of any priority level is less than the task amount that can be executed in parallel at this priority level, the present invention accumulates the difference between the remaining task amount of this priority level and the task amount that can be executed in parallel at this priority level to the task amount that can be executed in parallel at the next priority level lower than this priority level, thereby making use of idle resources and saving system resources.
[0087] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0088] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0089] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0090] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0091] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A task scheduling method, characterized in that: include: Determine the priority of each task in the batch of tasks to be executed; Determining a weight coefficient of each priority level according to at least two priorities of the batch task; Determine the amount of tasks that can be executed in parallel for each priority level according to the weight coefficients of the priorities and the total amount of tasks that can be executed in parallel, wherein the total amount of tasks that can be executed in parallel is the maximum number of tasks that can be executed in parallel by the system at one time; Schedule tasks of different priorities to be executed in parallel according to the amount of tasks that can be executed in parallel at each priority level; According to the weight coefficients of the respective priorities and the total number of tasks that can be executed in parallel, the amount of tasks that can be executed in parallel of the respective priorities is determined, including: When the total number of tasks that can be executed in parallel is divisible by the sum of the weight coefficients of each priority level, the number of tasks that can be executed in parallel for each priority level is determined as follows: Determining the amount of tasks that can be executed in parallel for each priority level according to the weight coefficients of the priorities and the total amount of tasks that can be executed in parallel, further comprising: When the total number of tasks that can be executed in parallel cannot be divided by the sum of the weight coefficients of each priority level, the number of tasks that can be executed in parallel for each priority level is determined as follows: Allocate the remaining number of tasks that can be executed in parallel to the priority with the largest weight coefficient; Also includes: Generate task instance table and job instance table according to task number, batch number, status, and planned start time task information in batch tasks; When the remaining amount of tasks of any priority level is less than the amount of tasks that can be executed in parallel at that priority level, determine the difference between the remaining amount of tasks of that priority level and the amount of tasks that can be executed in parallel at that priority level, add the difference to the amount of tasks that can be executed in parallel at the next priority level lower than that priority level, and use the remaining amount of tasks of that priority level as the amount of tasks that can be executed in parallel at that priority level.
2. A task scheduling device, characterized in that: include: The priority determination module is used to determine the priority of each task in the batch tasks to be executed; generate a task instance table and a job instance table according to the task number, batch number, status, and planned start time task information in the batch tasks; A weight coefficient determination module, used to determine the weight coefficient of each priority level according to at least two priorities of the batch task; A task quantity determination module, used to determine the quantity of tasks that can be executed in parallel for each priority level according to the weight coefficients of the respective priorities and the total number of tasks that can be executed in parallel, wherein the total number of tasks that can be executed in parallel is the maximum number of tasks that can be executed in parallel by the system at one time; An execution module is used to schedule tasks of different priorities to be executed in parallel according to the amount of tasks that can be executed in parallel at each priority level; The task volume determination module is specifically used for: When the total number of tasks that can be executed in parallel is divisible by the sum of the weight coefficients of each priority level, the number of tasks that can be executed in parallel for each priority level is determined as follows: The task volume determination module is specifically used for: When the total number of tasks that can be executed in parallel cannot be divided by the sum of the weight coefficients of each priority level, the number of tasks that can be executed in parallel for each priority level is determined as follows: Allocate the remaining number of tasks that can be executed in parallel to the priority with the largest weight coefficient; Also included: an adjustment module for: When the remaining amount of tasks of any priority level is less than the amount of tasks that can be executed in parallel at that priority level, adjust the amount of tasks that can be executed in parallel at that priority level and the next priority level lower than that priority level; The adjustment modules include: Difference calculation unit: determines the difference between the remaining tasks of the priority level and the tasks that can be executed in parallel with the priority level; The priority task amount adjustment unit: adds the difference to the task amount that can be executed in parallel at the next priority level lower than the priority level; and uses the remaining task amount of the priority level as the task amount that can be executed in parallel at the priority level.
3. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method of claim 1 is implemented.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the method of claim 1.
Citation Information
Patent Citations
Dispatching management method for task queue priority of large data set
CN105511950A
Thread task processing equipment, plant and method
CN107391243A
Task scheduling method and apparatus
CN107423120A
Test scheduling method and device, server and storage medium
CN107943686A
Hadoop cluster-based task scheduling method and computer device
CN108762896A
