首页|一种基于前后台系统的CPU使用率计算方案

一种基于前后台系统的CPU使用率计算方案

扫码查看
大多数小规模的嵌入式设备均不采用操作系统,而使用前后台系统进行功能设计开发.目前,在前后台系统下,尚无有效的方案实时反映任务及时性响应情况,无法监控功能偶发问题,导致功能缺陷出现.基于此,本文提出了一种基于前后台系统的CPU使用率计算方案,该方案通过统计周期内的触发次数、CPU使用率及极值实时反映任务及时性响应情况,并将该方案应用于GD32 MCU.结果表明,该方案能有效实时反映当前设备的整体运行状况,为设备功能的开发和测试提供有效支撑.
Scheme for Calculating CPU Usage Based on the Front-End and Back-End System
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.

front-end and back-end systemreal-time response of tasksCPU usageGD32

刘伟伟

展开 >

南京宁钛诺科技有限公司,江苏南京 211899

前后台系统 任务及时性响应 CPU使用率 GD32

2024

自动化应用
重庆西南信息有限公司

自动化应用

影响因子:0.156
ISSN:1674-778X
年,卷(期):2024.65(5)
  • 14