CPU load rate calculation method for tasks and interruptions of embedded operating system
A technology of operating system and calculation method, applied in calculation, program control design, program startup/switching, etc., can solve the problem of inaccurate CPU load rate, etc., and achieve the effect of small calculation and high efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0019] A kind of embedded operating system task and the CPU load ratio calculation method of interrupting, comprise the steps:
[0020] (1) Run the task / interrupt start program when the task / interrupt starts, realize the task switching in the data and update the corresponding data;
[0021] (2) If the task is a CPU load calculation task, it is also necessary to call the CPU load rate calculation program to calculate the CPU occupancy rate of all tasks / interrupts and the CPU load rate of this core;
[0022] (3) Before the end of the task / interrupt, it is necessary to call the end program of the task / interrupt to calculate the running time of this time, the running time after the CPU load rate test, and update the maximum running time and the shortest running time at the same time.
[0023] Such as figure 1 Shown is the schematic diagram of the implementation of the present invention. 1 is the controller storage space, which can be memory media such as on-chip RAM, off-chip RA...
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