I am trying to implement following scenarios, if any guide to achieve this will be helpful.
Before starting scheduler, I have created 4 tasks, one timer and one interrupt
By default all task should not be running, somewhere I read this can be managed by assigning -ve priority to the task. Is it correct implementation?
Whenever timer expires it checks for condition and makes certain task ready for execution (means changing the priority of tasks at run time)
when the task is completed task itself change the priority to -ve again.
Above three are true if -ve priorities can be assigned, if not what is other method to achieve?
If interrupt is occurring than system has to log some points in memory and than resets
If system is hanged and none of the task or timer or interrupt is able to execute for some time than system has to reset.