Context switching using virtual memory?
Recently I gave a midterm exam for Operating System course, and one of the questions asked was this-
Which of the following statements is false?
I am confused between options 1 and 4. Context switching should be faster in case of VM (I'm not sure why, its just an intuition ). For option 1, Virtual memory doesnt implement the address translation, but it is the MMU which does this. Am I missing something ? What should be the correct answer then ?
Virtual memory implements the translation of a program's address space into physical memory address space
That is logical memory translation, not virtual memory. That could be false, unless you conflate (as many do) the terms "virtual memory" and "logical memory." Could be false or true.
Virtual memory allows each program to exceed the size of the primary memory
True.
Virtual memory increases the degree of multiprogramming
Say what? This statement means something?
Virtual memory reduces the context switching overhead
It might. It might not. Neither true nor false.
Virtual memory reduces the context switching overhead.
In a system with virtual memory context switch includes extra overhead in switching of address spaces.4th statement would be false and it would be correct answer.
Refer this link
Virtual memory implements the translation of a program's address space into physical memory address space
VM requires both hardware(TLB and MMU) and OS support (to control TLB and MMU ). MMU hardware translates the virtual address into a physical address
Virtual memory allows each program to exceed the size of the primary memory
TRUE
Virtual memory increases the degree of multiprogramming
Vm improves number of processes simultaneously in memory -TRUE
链接地址: http://www.djcxy.com/p/80276.html上一篇: 可以分配给进程的堆栈段的最大大小是多少?
下一篇: 使用虚拟内存切换上下文?