Task scheduling method and device and operating system
A task scheduling and task technology, applied in multi-programming devices, program startup/switching, sustainable buildings, etc., can solve problems such as increasing CPU load and system power consumption
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] figure 2 It is a flow chart of Embodiment 1 of a task scheduling method of the present invention. The execution subject of this method is a task scheduling device, which can be placed in an operating system, such as Linux, Windows, Solaris, and VxWorks. Such as figure 2 As shown, the method specifically includes:
[0051] Step 201, register and generate a task scheduling index list according to all subtasks included in the task, and the task scheduling index list includes at least the index of each subtask and the function entry address pointer corresponding to each subtask;
[0052] In this step, the subtask is a subfunction in the task function. The task scheduling index table is stored in the memory, and the space can be uniformly applied for and maintained during implementation, or can be maintained by each specific business module.
[0053] image 3 for figure 2 Schematic diagram of the task scheduling index list generated by registering in , such as imag...
Embodiment 2
[0063] Figure 5 It is a flow chart of Embodiment 2 of a task scheduling method of the present invention, such as Figure 5 shown, including:
[0064] Step 501, according to the execution order of each subtask included in the task, generate the index number of each subtask in the task scheduling index list, so that the execution order of each subtask and the order of the index number of each subtask are maintained consistent;
[0065] Generate the index number of each subtask in the task scheduling index list according to the execution order of each subtask included in the task, so as to ensure that the execution order is consistent with the relative order of the tasks when statically compiled, so there will be no problem during execution Because the order is inconsistent, the consistency of the software logic is broken.
[0066] Step 502: Register and generate a task scheduling index list according to the index numbers of the subtasks in sequence, and the task scheduling i...
Embodiment 3
[0092] Figure 6 It is a structural diagram of Embodiment 1 of a task scheduling device of the present invention, as shown in Figure 6 As shown, the device 60 includes:
[0093] The registration generation module 61 is configured to register and generate a task scheduling index list according to all subtasks included in the task, and the task scheduling index list includes at least the index of each subtask and the function entry address pointer corresponding to each subtask;
[0094] Determine the subtask module 62, configured to determine the subtasks that need to be scheduled for execution when the user program schedules the task;
[0095] The update task scheduling index list module 63 is configured to update the task scheduling index list so that the task scheduling index list only includes the subtasks scheduled for execution by the user program when scheduling the task. Subtasks that need to be scheduled for execution when describing tasks;
[0096] The scheduling e...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com