Hello,
I wish to measure the CPU utlization for a cortex processor running an RTOS (keil RTX). Without an RTOS, i can measure the idle time to come to some conclusion. But with RTOS, can someone guide me how to measure CPU utlization?
Thanks & Best Regards Vivek
In this case, the CPU is the microprocessor in the embedded system, i.e. the microcontroller.
For more advanced and/or critical systems, it is vital that the processor is always fast enough to handle all critical events in real time, i.e. with a minimum of delay and as fast as new events arrives. As soon as events are lost or gets enqueued, the device will no longer uphold real-time performance.
But a system normally also have low-priority tasks. Things that is allowed to be delayed while critical events gets serviced. But even these low-priority tasks must finally get serviced even if it may be ok if they are delayed for several minutes or more. Being able to measure idle time for a processor can be used to estimate the probabilities that low-priority tasks gets starved.