Control Stack

The Control Stack is a memory structure used by operating systems and programs to manage the execution of processes and functions.

Control Stack vs. Stack Frame?

  • The stack frame is a section within the control stack, dedicated to one function call
  • The control stack is composed of multiple stack frames

Each process has its own dedicated control stack. This ensures that each process maintains its own independent execution state, including function calls, local variables, and return addresses.

Every time there is a Process Switch, we need to store the value of the registers onto the control stack.