Final answer:
The major components of a process image are registers, program counter, stack, and heap.
Step-by-step explanation:
The major components of a process image are:
- Registers: These are small memory locations within the CPU that store data for quick access. They are used to store intermediate results, function arguments, and other temporary data.
- Program Counter: This is a register that keeps track of the next instruction to be executed in a program. It points to the memory address of the instruction in the program being executed.
- Stack: This is a region of memory used for local variables and function call information. It grows and shrinks as functions are called and return.
- Heap: This is a region of memory used for dynamic memory allocation. It is used for storing data that persists beyond the lifetime of a single function or block.