Chapter 8 – Virtual Memory
True / Fal Questions:
1. 河南故事T / F – In a system employing a memory management strategy that doesn’t require an entire process to be in main memory at one time, the portion of a process that is actually in main memory at any given time is defined to be the resident t of the process. 在一个使用一个不需要整个的程序以一个次是在主存中的存储器管理系统中有教无类是什么意思, 程序的部分实际上是在任何的给定时间是在主记忆中定义当程序的居留组。
ANS: T
2. T / F – The condition known as thrashing occurs when the majority of the process in main memory require repetitive blocking on a single shared I/O device in the system.在一个系统中,当大量的主存中的进程要求重复阻断一个单独共享的I/O设备的情况称之为系统抖动
ANS: F (processor spends most of its time swapping rather than executing) 错。是处理器花费大量时间不断进行交换块,而不是去执行指令
3. T / F – The modify (M) bit is a control bit in a page table entry that indicates whether the contents of the corresponding page have been altered since the page was last loaded into memory.修改位(M)是一个控制位,他表示相应页的内容从上一次装入主存中到现在是否已经发生变化。
4. T / F – A Page Fault occurs when the desired page table entry is not found in the Translation Lookaside Buffer (TLB).一个页错误的发生是在转移后备缓冲器中不存在所需要的页
ANS: F (when the desired page is not found in main memory)错误,是发生在主存中不存在所需页表
5. T / F – One of the advantages to the programmer of virtual memory using gmentation is that it simplifies the handling of growing data structures by allowing the gment to grow or shrink as necessary.对程序员而言,使用虚拟内存的一个优点是它简化了处理增加的数据结构,这是通过允许段进行必要的增加或者缩小的操作
怎么改文件格式6. T / F – In a combined paging/gmentation system, a ur’s address space is broken up into a number of fixed-size pages, which in turn are broken up into a number of gments.在一个段页复用的系统中,一个用户的地址空间被划分程序多固定大小的页,这些也有被划分成许多段
7. T / F – To achieve sharing in a gmentation system, it is possible for a gment to be referenced in the gment tables of more than one process. 为了实现在一个段系统的共享,一个段有可能再多共和进程的段表中被使用
8. T / F – Linux is an example of an operating system that does not provide virtual memory.linux就是一个没有提供虚拟内存的操作系统。
9. T / F – The fetch policy determines when a page should be brought into main memory.读取策略确定一页何时取入主存
10. T / F – The Least Recently Ud (LRU) replacement policy replaces the page in memory that has been referenced most recently.LRU替换策略是替换最常用的页
11. T / F – A global replacement policy considers all unlocked pages in main memory as candidates for replacement, regardless of which process owns a particular page.全局替换策略是把主存中所有的未被锁定的页都作为替换的候选页,而不管他们属于那个进程
12. T / F – In a precleaning policy, modified pages are written to condary memory once
they have been lected for replacement.在预约式清除策略中,被修改的页一旦被选中作为替换,将会被写入辅存中
ANS: F (written before that, so they can be batched)错
13. T / F – SVR4 and Solaris systems u two parate schemes for memory management, one for ur process and disk I/O, and another for kernel memory allocation.SVR4和Solaris系统使用了两套独立的内存管理方案,一个是对用户进程和磁盘的I/O古风男网名接口,而另一个则是为微内核内存分配管理
14. T / F – Linux makes u of a two-level page table structure, consisting of a page directory and a page table.linux利用两级分页结构组成页目录和页表
15. T / F – Every W2K ur process es a parate 32-bit address space, allowing 4 GB of memory per process.每一个win2000的用户进程看到的是一个独立的32位地址空间,每个进程允许有4GB存储空间
Multiple Choice Questions:
1. The type of memory that allows for very effective multiprogramming and relieves the ur of memory size constraints is referred to as:哪一种类型的存储器允许更有效的多道程序设计,并且解除了用户与主存大小之间的约束
a. Real memory真实内存
b. Virtual memory虚拟内存
c. Main memory主存
d. All of the above三者皆是
ANS: B
2. The situation where the processor spends most of its time swapping process pieces rather than executing instructions is called: 处理器花费大量时间不断进行交换块,而不是去执行指令的现象称为
a. Paging分页
b. The Principle of Locality局部性原理
c. Thrashing系统抖动
d. None of the above都不是
ANS: C
3. The situation that occurs when the desired page table entry is not found in the Translation Lookaside Buffer (TLB) is called a: 书法入门教程在转移后备缓冲器中不存在所需要的页的情况叫做
a. TLB miss TLB未命中
b. TLB hit TLB命中
c. Page fault 页错误
d. None of the above都不是
ANS: A
少年易老学难成的下一句4. The real address of a word in memory is translated from the following portions of a virtual address:一个字的在主存中的真实地址从下列虚拟地址的哪一部分转送的
a. Page number and frame number页号和帧号
b. Page number and offt页号和偏移地址
c. Frame number and offt帧号和偏移地址
d. None of the above都不是
ANS: B
调研工具5. Segmentation has a number of advantages to the programmer over a non-gmented address space, including:分段组织和非段式地址空间想必有很多优点,包括