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
I learn much from the discussion. But I still don't really understand the meaning. What's the meaning of the "CPU"? Is it the computer CPU? I haven't used the Keil RTX? I had used SComAssistant.exe V2.2 to transmit the data from the IC to computer. I used the software of Delphi7 to program a UART transmission software which could control the LEDs on a board which had the IC of RS232,AT89S52 and so on. I think that if the computer is good enough. We don't need to care about the CPU utilization. My comprehension is limited. The above is my mind.
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.