Multiple-task scheduling method and device
A multi-task and task technology, applied in the field of communication, can solve the problems of inability to reasonably arrange the task scheduling sequence, reduce system performance, and inability to reasonably allocate resources, etc., and achieve the effect of improving task response time and system performance, and rationally allocating resources.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0054] This embodiment provides a method for multi-task scheduling, see figure 1 , the method flow provided by this embodiment is specifically as follows:
[0055] 101: Assign multiple tasks to corresponding task queues, wherein there is at least one task queue;
[0056] 102: For any task queue, sort the tasks in any task queue according to task attributes, where the task attribute is at least one of priority and required system resources;
[0057] 103: Schedule corresponding tasks according to the number of schedulable tasks in each task queue and the sorting result of the tasks in each task queue.
[0058] In the method provided by this embodiment, a plurality of tasks are assigned to the corresponding task queues; and the tasks in any task queue are sorted according to the task attributes; according to the number of tasks that can be scheduled in each task queue and the The sorting results of the tasks are used to schedule the corresponding tasks, so as to allocate resour...
Embodiment 2
[0060] Embodiment two
[0061] This embodiment provides a method for multi-task scheduling. For the convenience of description, this embodiment combines figure 2 In the schematic diagram shown, the method provided by this embodiment is described in detail by taking scheduling tasks of multiple modules in an application program as an example. see image 3 , the method flow provided by this embodiment is specifically as follows:
[0062] 301: Determine the system resources required by each task, and determine the system resources currently available for each task queue, where there is at least one task queue;
[0063] This embodiment does not specifically limit the specific form of the determined system resource, for example, it may be a CPU (Central Processing Unit, central processing unit) resource, or may also be a memory resource.
[0064] For example, taking system resources as memory resources as an example, determine figure 2 The memory resource required by the read...
Embodiment 3
[0095] This embodiment provides a device for multi-task scheduling, which is used to implement the method for implementing multi-task scheduling provided in the first or second embodiment above, see Figure 4 , the device consists of:
[0096] An assignment module 401, configured to assign multiple tasks to corresponding task queues, wherein there is at least one task queue;
[0097] The sorting module 402 is configured to, for any task queue, sort the tasks in any task queue according to task attributes, where the task attribute is at least one of priority and required system resources;
[0098] The scheduling module 403 is configured to schedule corresponding tasks according to the number of schedulable tasks in each task queue and the sorting results of the tasks in each task queue.
[0099] Further, see Figure 5 , an allocation module 401 comprising:
[0100] A determining unit 4011, configured to determine system resources required by each task, and determine currentl...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 