◄ Wiki / OS
return frame
The saved snapshot of a thread's state that the CPU restores to resume it exactly where it left off.
When an interrupt or exception pauses a thread, the CPU stores its registers and position as a structured block on the stack — the return frame — so it can pick up precisely where it stopped. Resuming means popping this frame back into the processor. If the frame is malformed or inconsistent, the thread returns into a broken state, which is a common source of subtle crashes.
See also
- preemption / preemptiveWhen the OS forcibly pauses a running thread mid-execution to let a different one run.
- prologue / epilogueThe small bookkeeping code the compiler inserts at the start and end of every function to set up and tear down its workspace.
- program counter (PC)The CPU register that holds the address of the instruction currently being executed.
- reaperA background kernel thread that cleans up threads that have finished, freeing their resources.
Referenced by
preemption / preemptive · program counter (PC) · prologue / epilogue · reaper · relocation