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

Scheme for Calculating CPU Usage Based on the Front-End and Back-End System

在线阅读下载全文

作  者:刘伟伟 LIU Weiwei(Nanjing Ningtainuo Technology Co.,Ltd.,Nanjing,Jiangsu 211899,China)

机构地区:[1]南京宁钛诺科技有限公司,江苏南京211899

出  处:《自动化应用》2024年第5期247-249,252,共4页Automation Application

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

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象