The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+37 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 (59.9k points)
edited by | 6k views
Thank you

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

Why not C?

5 Answers

+39 votes
Best answer

Its instruction set architecture .if you have no indirect addressing then you need at least 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 at least 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 Active (4.9k 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 ?

what is the answer if virtual memory environment is not there?

The minimum number of page frames are decide by Instruction Set Architecture whereas the maximum number of page frames are decided by Physical Memory Size.

+19 votes

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

answered by Boss (42.7k 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..
+14 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 Boss (35.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.
+13 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 Active (1k points)
0 votes
instruction set architecture

A) option
answered by Boss (20.8k points)

Related questions

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
48,720 questions
52,823 answers
68,570 users