一种基于前后台系统的CPU使用率计算方案
Scheme for Calculating CPU Usage Based on the Front-End and Back-End System
刘伟伟1
作者信息
- 1. 南京宁钛诺科技有限公司,江苏南京 211899
- 折叠
摘要
大多数小规模的嵌入式设备均不采用操作系统,而使用前后台系统进行功能设计开发.目前,在前后台系统下,尚无有效的方案实时反映任务及时性响应情况,无法监控功能偶发问题,导致功能缺陷出现.基于此,本文提出了一种基于前后台系统的CPU使用率计算方案,该方案通过统计周期内的触发次数、CPU使用率及极值实时反映任务及时性响应情况,并将该方案应用于GD32 MCU.结果表明,该方案能有效实时反映当前设备的整体运行状况,为设备功能的开发和测试提供有效支撑.
Abstract
Most small-scale embedded devices use a front-end and back-end system for functional design and development,rather than an operating system.Currently,there is no effective solution under the front-end and back-end system to reflect the real-time response of tasks and monitor occasional functional problems,which can result in functional defects.Therefore,a scheme for calculating CPU usage based on the front-end and back-end system is proposed in this paper.This scheme reflects the real-time response of tasks by counting trigger times,CPU usage,and extremes in a statistical cycle.It is applied to GD32 MCU.Experimental results show that this scheme can effectively reflect the overall running status of the device in real time and provide effective support for the development and testing of device functions.
关键词
前后台系统/任务及时性响应/CPU使用率/GD32Key words
front-end and back-end system/real-time response of tasks/CPU usage/GD32引用本文复制引用
出版年
2024