in Operating System edited by
23,761 views
66 votes
66 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
in Operating System edited by
23.8k views

4 Comments

Thank you
0
0

In question they asked : "The minimum number of page frames...". Please correct it.
https://stackoverflow.com/questions/11213013/minimum-page-frames
 

5
5
Why not C?
1
1
1
1

9 Answers

76 votes
76 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.

http://stackoverflow.com/questions/11213013/minimum-page-frames

edited by

4 Comments

edited by

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

34
34
please explain why option B and C is not true.
0
0

Hi @Parth Shah Could you please explain how maximum number of page frames is defined by physical memory size?

1
1
36 votes
36 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.
22 votes
22 votes

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

https://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html

3 Comments

Please explain your answer in detail.
0
0
@Manu Thakur, please don't say option D doesn't make sense...it actually determines MAXIMUM no. of frames allocation..
4
4

@Abbas @Arjun Sir @Sachin Mittal 1 SIr should’nt page size also play a role in determining maximum number of frames because if a page size is small then we can have more number of frames compared to when page size is large for same physical memory size .

0
0
19 votes
19 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

by

2 Comments

why indirect operands require more pages?
9
9
@Arjun Sir

Because indirect addressing requires effective address calculation and the actual operand may be present on other pages.
15
15
Answer:

Related questions