Method and system for detecting CPU (Central Processing Unit) occupancy rate of vxWorks
A technology of vxworks and detection methods, applied in the direction of hardware monitoring, etc., to achieve the effect of simple implementation, strong versatility, and short code
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0034] Combine now Figure 1-2 , the specific embodiments of the present invention are described in detail to illustrate the technical solutions of the present invention.
[0035] Such as figure 1 As shown, it is a flowchart of an embodiment of the CPU usage detection method for vxWorks according to the present invention, including steps:
[0036] S1: After the VxWorks system task is started and before the user task is started, start a task A with the lowest priority, and set a statistical time t at the same time, so as to increment a static variable s from the statistical time t and record its count value i , until the statistical time t ends.
[0037] Specifically, the statistical time t can be provided by a delay function f, such as a 2-second delay of a system function taskDelay(), or can be set to a longer or shorter other stable uniform delay , as the statistical time t.
[0038] S2: When the statistical time t corresponding to the task A with the lowest priority end...
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