Home | Projects | Notes > Real-Time Operating Systems (RTOS) > Context Switching

Context Switching

 

State of a Task

See Scheduling & Context Switching for processor level details.

 

state-of-a-user-task

 

 

Stacks

 

kernel-stack-vs-user-task-stack

 

 

Context Switching

Task Switching-Out Procedure

 

task-switching-out

 

Task Switching-In Procedure

 

task-switching-in

 

Context Switching on SEGGER SystemView

 

context-switching-segger-system-view

 

 

Context Switching in Code

 

Review Questions

 

 

References

Nayak, K. (2022). Mastering RTOS: Hands on FreeRTOS and STM32Fx with Debugging [Video file]. Retrieved from https://www.udemy.com/course/mastering-rtos-hands-on-with-freertos-arduino-and-stm32fx/