The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+29 votes

The minimum number of page frames that must be allocated to a running process in a virtual memory environment is determined by

  1. the instruction set architecture
  2. page size
  3. number of processes in memory
  4. physical memory size
asked in Operating System by Veteran (69k points)
edited by | 3.6k views

In question they asked : "The minimum number of page frames...". Please correct it.

4 Answers

+31 votes
Best answer
Its instruction set architecture .if you have no indirect addressing then you need atleast two pages in physical memory. one for instruction (code part) and another for if the data references memory.if there is one level of indirection then you will need atleast three pages one for the instruction(code) and another two for the indirect addressing. if there three indirection then minimum 4 frames are allocated.
answered by Boss (5k points)
edited by
This is an AWESOME question.
Now i know that who determines number of page frames of running process. :)

Prasanna can u explain this !


Physical Address = 32 bits

page size = 1 KB

number of page frames = 232 / 210 = 222

so how does it not depend on page size and PA?


The page size determines the maximum no of page frames that can be allocated to a process.


Pages in virtual address space (which is what all code running under a virtual memory OS deals with) are called simply pages, or virtual pages. 

Pages in physical memory (RAM) are called physical memory, or physical pages, or... "page frames




and question is about page frames right ?

+15 votes

A is the answer of this question, b,c,d options don't make a sense

answered by Veteran (43.6k points)
Please explain your answer in detail.
@Manu Thakur, please don't say option D doesn't make actually determines MAXIMUM no. of frames allocation..
+10 votes

Answer A

The minimum number of page frames that must be allocated to a running process  is determined by the instruction set architecture

Simple instructions may need less number of frames

complex instruction or multiple level indirect operands may demand many more pages

answered by Veteran (36.2k points)
why indirect operands require more pages?
@Arjun Sir

Because indirect addressing requires effective address calculation and the actual operand may be present on other pages.
+5 votes
The minimum number of page frames that must be dedicated for a process is determined by Instruction set architecture.

Suppose that a instruction requires 4 pages to run till completion. Eg: it mat require 1 page for code segment, 2 pages for storing data operands and 1 page for storing stack segment. Now if we allocate only 3 pages that means only 3 pages will be present in the main memory at a time, say we didn't provide a page for stack. Then code has been executed, operand has been fetched but when we try to store the result we get a page fault. So when we get a page fault during execution the instruction has to be started again. So instruction set determines the minimum page frame.
answered by Junior (941 points)

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

33,687 questions
40,230 answers
38,800 users