Method for measuring task CPU occupancy rate in multitasking operation system

An operating system and occupancy rate technology, applied in multi-programming devices, hardware monitoring, etc., to achieve the effects of high timing accuracy, cost saving, and accurate measurement

Active Publication Date: 2008-03-19
ZTE CORP
View PDF1 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] As can be seen from the above, there are many shortcomings in the existing methods that need to be improved.

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
  • Method for measuring task CPU occupancy rate in multitasking operation system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

[0027] The 3G system consists of multiple embedded systems. Here we take one single-board embedded system as an example. This system uses PPC755 CPU and VXWORKS operating system.

[0028] FIG. 1 is a structural block diagram of a device for measuring the CPU usage rate of a multitasking operating system task according to an embodiment of the present invention. Including hardware timer 101, PPC755 CPU and VXWORKS operating system 102, interrupt counter 103 and PC display device 104.

[0029] In this example, the hardware timer is a nanosecond-level hardware timer provided by the PPC755 CPU BSP. The common entry of all interrupts of the PPC755 CPU is the No. 500 exception vector processing routine, and all statistics are 4-byte variables.

[0030] In the method for measuring the CPU occupancy rate of multi-task operating system tasks proposed b...

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 present invention provides a method to measure the CPU occupancy factor of a multi-task operation system, and the method comprises the procedures that (a) a high-priority timing statistic task is established to clear up all statistics, and a statistic interval is arranged; (b) the time points at the entrance of the interrupt processing routine and at the exit of the interrupt processing routine are recorded; the difference between the two time points is an once-execution time of the interrupt processing routine, and the time is accumulated; (c) when switching the task, the task starting time point when the task is switched in and the task ending time point when the task is switched off are respectively recorded; the time difference of the same task between the task ending time point and the task starting time point deducted by the interrupt processing routine execution time contained in the task execution process is the once-execution time of the task, and the time is accumulated; (d) when the statistic interval is ended, the total execution time of each task is mounted to the total execution time of the interrupt processing routine to get the total execution time of the system in the statistic interval, thereby calculating the CPU occupancy factor of every task and the interruption.

Description

technical field [0001] The invention relates to a multitasking operating system, in particular to a method for measuring the CPU occupancy rate of a multitasking operating system task. Background technique [0002] In computer software systems, some form of multitasking operating system is basically adopted, and all applications and functions are carried by tasks and completed under multitasking cooperation. Due to the increasing complexity of system applications and the increasing number of tasks in multi-tasking operating systems, the running status of tasks plays an increasingly important role in multi-task collaboration, and the CPU usage of tasks is a very important factor in the running status of tasks. An important part of. If the CPU usage of each task in the system can be accurately measured in real time, it can be used to determine whether the design of the entire system is normal, whether the design of each task is correct, and whether there is a problem with exe...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/34G06F9/46
Inventor 傅仁武
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products