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:
@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....
Jump to solution
2 Replies
Solution
UC GEE
UC GEE4mo ago
@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.
electro_coco
electro_coco4mo ago
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
Want results from more Discord servers?
Add your server