The minimum number of page frames that must be allocated to a running process…
2019
The minimum number of page frames that must be allocated to a running process in a virtual memory environment is determined by
- A.
page size
- B.
physical size of memory
- C.
the instruction set architecture
- D.
number of processes in memory
Attempted by 306 students.
Show answer & explanation
Correct answer: C
Answer: the instruction set architecture
Explanation: The minimum number of page frames a running process must have is set by requirements of the instruction set architecture (ISA). The ISA and its hardware implementation determine the smallest set of pages that must be resident to allow instruction fetch and execution to proceed.
Instruction fetch requirements: If an instruction can span two pages, both pages must be present for that instruction to execute.
Addressing modes and operand access: Certain addressing modes may require accesses to multiple pages (for example, base and index that reference different pages), increasing the minimum resident pages.
Essential regions: The program counter, the stack pointer, and any memory-mapped registers or code/data pages that must be immediately accessible are dictated by the ISA and runtime conventions.
Why other choices are incorrect:
Page size: Affects the size of each frame (granularity) but not the architectural minimum count required for correct execution.
Physical size of memory: Limits the total frames available system-wide, but does not set the per-process minimum required by the ISA.
Number of processes in memory: Influences allocation policies and how frames are shared, but not the intrinsic minimum that the process needs to execute.
Tip: To find the minimum required frames, consider the smallest set of pages that must be resident for any instruction to be fetched and executed given the ISA (e.g., instruction page, possibly adjacent page if instructions can span pages, and pages holding required operands).
A video solution is available for this question — log in and enroll to watch it.