??? 10/17/06 00:02 Read: times |
#126548 - Idle Not Idle Responding to: ???'s previous message |
in a RTOS system, there is always a task which priority is lowest, I call it Idle task, all other tasks are "Not Idle task".
The CPU usage = (Totoal CPU runing Time - Idle Task Time)/ Totoal CPU runing Time Totoal CPU runing time must be longer enough, say 1 hpur or 10 hours. As a thumb of rule, I always keep this value less than 60%. In my 8051 system, there is no RTOS, I am wondering how to get this CPU usage. My system is interrupt driven, Timer0, RS232. |