Task scheduling method and task scheduling device for embedded software
A technology of embedded software and task scheduling, applied in the directions of multi-programming device, program startup/switching, inter-program communication, etc., to achieve the effect of high cohesion, convenient software modification and maintenance, and avoiding the consumption of RAM resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0057] The purpose of Embodiment 1 is to provide a task scheduling method for embedded software.
[0058] In order to achieve the above object, the present invention adopts the following technical scheme:
[0059] Such as figure 1 as shown,
[0060] A task scheduling method for embedded software, the method comprising:
[0061] Initialize the MCU in the order of logical task priority from low to high, and enter the main loop body;
[0062] Execute the task scheduler in the main loop body, and execute the task handlers of each logical task in sequence according to the priority of the logical tasks from high to low, until the priority of the current logical task is the lowest, exit the task scheduler and return to the main loop. loop body;
[0063] Logical tasks communicate by sending events. When the interrupt handler or task handler of a logical task sends an event to another logical task, the logical task structure is filled with events;
[0064] The logical task structu...
Embodiment 2
[0081] The purpose of Embodiment 2 is to provide a computer-readable storage medium.
[0082] In order to achieve the above object, the present invention adopts the following technical scheme:
[0083] A computer-readable storage medium, wherein a plurality of instructions are stored, and the instructions are suitable for being loaded by a processor of an embedded terminal device and performing the following processing:
[0084] Initialize the MCU in the order of logical task priority from low to high, and enter the main loop body;
[0085] Execute the task scheduler in the main loop body, and execute the task handlers of each logical task in sequence according to the priority of the logical tasks from high to low, until the priority of the current logical task is the lowest, exit the task scheduler and return to the main loop. loop body;
[0086] Logical tasks communicate by sending events. When the interrupt handler or task handler of a logical task sends an event to anoth...
Embodiment 3
[0089] The purpose of Embodiment 3 is to provide an embedded terminal device.
[0090] In order to achieve the above object, the present invention adopts the following technical scheme:
[0091] An embedded terminal device includes a processor and a computer-readable storage medium, the processor is used to implement instructions; the computer-readable storage medium is used to store multiple instructions, and the instructions are suitable for being loaded by the processor and performing the following processing:
[0092] Initialize the MCU in the order of logical task priority from low to high, and enter the main loop body;
[0093] Execute the task scheduler in the main loop body, and execute the task handlers of each logical task in sequence according to the priority of the logical tasks from high to low, until the priority of the current logical task is the lowest, exit the task scheduler and return to the main loop. loop body;
[0094] Logical tasks communicate by sendi...
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