Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Pending Publication Date: 2021-09-21
XPT NANJING E POWERTRAIN TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method can only reflect the entire CPU load rate, not accurate to the CPU load rate of each task and interrupt

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • CPU load rate calculation method for tasks and interruptions of embedded operating system
  • CPU load rate calculation method for tasks and interruptions of embedded operating system
  • CPU load rate calculation method for tasks and interruptions of embedded operating system

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a CPU load rate calculation method for tasks and interruptions of an embedded operating system, which comprises the following steps: (1) running a task / interruption starting program when the tasks / interruptions start, realizing task switching in data and updating corresponding data; (2) if the task is a CPU load calculation task, calling a CPU load rate calculation program to calculate the CPU occupancy rate of all tasks / interruptions and the CPU load rate of the core; and (3) before the task / interruption is ended, calling a task / interruption ending program to calculate the current running time and the running time after the CPU load rate test, and updating the longest running time and the shortest running time at the same time. According to the invention, the CPU load rates of tasks and interruptions can be obtained in the multi-core operating system, and the longest running time and the shortest running time of the tasks and the interruptions are calculated in real time.

Description

technical field [0001] The invention relates to the technical field of embedded systems, in particular to a method for calculating CPU load ratios of embedded operating system tasks and interrupts. Background technique [0002] Embedded operating system refers to the operating system used for embedded. Embedded operating system is a wide range of system software, usually including hardware-related underlying driver software, system kernel, device driver interface, communication protocol, etc. The embedded operating system is responsible for the allocation of all software and hardware resources of the embedded system, task scheduling, control, and coordination of concurrent activities. [0003] The CPU load rate of the embedded operating system is an important indicator of the embedded system, which reflects the utilization rate of the CPU and the scalability of the system. Especially in a multi-core operating system, it is necessary to coordinate the allocation of tasks an...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/30G06F9/48
CPCG06F11/3013G06F11/302G06F11/3051G06F9/4812
Inventor 刘学飞
Owner XPT NANJING E POWERTRAIN TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products