What happens if there's no idle task in an RTOS?

Good day guys 🙌, Please I really need to know what happens if there's no idle task in an RTOS? Does the system automatically generate one? And besides consuming CPU time, what other roles do idle tasks play?
Solution
I doubt there is any RTOS that would do that. If there would be no idle task, then the list of runnable tasks would be empty and the scheduler would probably crash. Generally the single most important reason for idle thread's existence is to make the list of runnable tasks "never empty". This simplifies the code of scheduler.
Was this page helpful?