Thread
A thread in programming describes a state used by the CPU to execute a sequence of instructions. These threads of execution are managed by the scheduler of an OS.
State of a thread:
- Instruction pointer (or program counter): Register that stores the virtual address of the next instruction to execute (known as rip register on x64).
- Register state: State of all registers.
- …