CPU occupancy rate detection method and system of system task

A system task and detection method technology, which is applied in the field of CPU occupancy rate detection of system tasks, can solve the problems of inability to count and the CPU occupancy rate is not accurate enough, and achieve the effect of accurate CPU occupancy rate

Inactive Publication Date: 2008-05-14
ZTE CORP
View PDF0 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since the sum of task switching time and task execution time is less than one Tick and cannot be counted, the calculated CPU usage of each task is not accurate enough

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 occupancy rate detection method and system of system task
  • CPU occupancy rate detection method and system of system task
  • CPU occupancy rate detection method and system of system task

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The specific implementation manners of the present invention will be described in detail below with reference to the accompanying drawings.

[0019] Referring to FIG. 1 , a method for detecting CPU usage of a system task according to an embodiment of the present invention is illustrated. As shown in Figure 1, the method includes the following steps: S102, within a specific time period, record the start execution time and end execution time of each execution system task, and record the switching times of the system task; S104, use the start execution time and End the execution time to obtain the execution time length of each execution system task, and accumulate the execution time length of each execution system task to obtain the total execution time length of the system task; S106, using the switching times of the system task and the scheduled execution time The time length error obtains the correction value of the total execution time length of the system task; and S1...

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 central processing unit occupying rate testing method and a system of a system task; wherein, the method comprises the following steps; the invention records the execution starting time and execution finishing time of each executing system task and records the switching times of the system task; the execution starting time and execution finishing time are utilized to obtain the execution time length of each execution system task and accumulate the execution time length of each execution system task, so as to obtain the total execution time length of the system task; the switching times of the system task and the preset execution time length error are utilized to obtain the total execution time length revising value of the system task; and the total execution time length, total execution time length revising value and particular time length of the system task are utilized to obtain the central processing unit occupying rate in the particular time length of the system task.

Description

technical field [0001] The invention relates to the field of software development, and in particular to a method and system for detecting CPU usage of system tasks. Background technique [0002] In the field of embedded software development, whether it is a centralized device or a distributed device, multiple tasks are run, and the central processing unit (Central Processing Unit, referred to as CPU) calls each task according to certain task scheduling rules. The detection of CPU occupancy can know the busyness of a certain task for a certain period of time, so that the CPU can be reasonably obtained by adjusting its own task attributes, and finally the system can achieve a more ideal throughput. Moreover, when some faults occur in the system, the effect of error detection can also be achieved by detecting the CPU usage of each task. [0003] The currently commonly used CPU usage detection method is to start an idle task and execute a basic unit indefinitely. In the detect...

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/36G06F11/34
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