GATE | GATE CS 1999 | Question 36
Which of the following is/are advantages of virtual memory?
a) Faster access to memory on an average.
b) Processes can be given protected address spaces.
c) Linker can assign addresses independent of where the program will be loaded in physical memory.
d) Programs larger than the physical memory size can be run.
a and b
b and c
b and d
All of the above
Answer: (C) Explanation:
Virtual memory provides an interface through which processes access the physical memory. So,
Swapping of pages increases time while virtual memory concept is there and it slower the execution as compared to Direct access from physical memory. So, it is false.
Without virtual memory, it is difficult to give protected address space to processes as they will be accessing physical memory directly. So, it is true
Some other method can be used to assign addresses independent of where the program. so it is false.
Virtual memory allows a process to run using a virtual address space which is larger in size then the address of physical memory and pages are swapped in between physical memory and virtual memory when physical memory gets full. So, it is True.
So, statement (b) and (d) are Correct.
Quiz of this Question
Share your thoughts in the comments
Please Login to comment...