Nehal
DIIDevHeads IoT Integration Server
•Created by Marvee Amasi on 5/13/2024 in #middleware-and-os
Why is there a need for a separate task stack in an RTOS?
TCB along with other information stores stack pointer to resume from it left. Apart from it the stack we provide holds the current state of task and other information in registers are pushed into this stack regarding context switching. You can say that TCB organizes and manages the tasks, the actual register values and the runtime stack operations (like function calls and local data) are handled on the separate task stack.
4 replies