Wednesday 24 July 2019

Understanding Non-Preemptive scheduling and implementing a non-preemptive scheduler on STM32


Do visit and support me by subscribing to my youtube channel - https://www.youtube.com/channel/UC5zezp0q2gn4oAdKJ4svsNA




Hi There,


Welcome to a new post on "Understanding Non-Preemptive scheduling and implementing a non-preemptive scheduler on STM32".

The motivation to write on this topic is to share the working principle of non-preemptive scheduler and implementing a non-preemptive scheduler on STM32.



Before we proceed, I want to ask you a question. How many times you have heard about the word 'ticks' or 'time ticks' while you are studying RTOS? Pretty much all the time right?

So before we go jump in to our study, lets configure a general purpose timer on STM32. Please follow the below video for instructions



With a timer set, let me explain about what scheduling means and what are different types of scheduling algorithms. Follow the below video for more details



Now lets get into implementation of a simple non-Preemptive scheduler.
Follow this video to know more


Now do play around implementing your own logic in tasks or adding more task and let me know you observations. If you have any queries on the topic do let me know in the comment box below

HAPPY LEANRING 😃

No comments:

Post a Comment