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.
Jump to solution
4 Replies
aymen ammari
aymen ammari•3mo ago
Is there any source to learn RTOS, I want to know more about it
Navadeep
Navadeep•3mo ago
FreeRTOS
RTOS idle task and the FreeRTOS idle task hook function
RTOS idle task and the FreeRTOS idle task hook
Marvee Amasi
Marvee Amasi•3mo ago
Thanks, very resourceful
Solution
Joseph Ogbonna
Joseph Ogbonna•3mo ago
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.
Want results from more Discord servers?
Add your server
More Posts