Looking to build a simple preemptive RTOS for fun!
Hey guys, I'm Looking to build a simple preemptive RTOS for fun! Any resources to get started on the core concepts of task switching between two threads, besides "Simple Real-Time Operating Systems"?
@Middleware & OS
Solution:Jump to solution
@Dtynin Try to implement a preemptive scheduler that can interrupt lower-priority tasks to run higher-priority tasks. This scheduler Will ensure that the critical tasks are executed in a timely manner.
Then, apply a kernel that manages the tasks and their execution. Check these points out,I believe it will be helpful to your project....
2 Replies
Solution
@Dtynin Try to implement a preemptive scheduler that can interrupt lower-priority tasks to run higher-priority tasks. This scheduler Will ensure that the critical tasks are executed in a timely manner.
Then, apply a kernel that manages the tasks and their execution. Check these points out,I believe it will be helpful to your project.
Use a timer to generate interupt at each interput have it monitor a queue in which task are present then check out which task has highrpiority then sort them bubble sort maybe and then call them as they were but its more deep than that this is something that gives you a crude idea main point is you want to implement a scheduler which is called at each interrupt