Electronic – Idle state in RTOS, sleep state or lowest frequency


In real time systems using an RTOS, what how would the RTOS handle an idle period? Would it run nop instructions at the lowest frequency supported by a Dynamic Voltage Scaling capable processor? or would it turn to a sleep state? Can anyone refer me to actual practical implementations. Thanks

Best Answer

I depends entirely on the system requirements. Systems that need to operate at very low power could go to sleep until the next interrupt. Other systems might have plenty of power but need to be very reliable...these could be doing self-tests in the background task.