⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 homework #3.htm

📁 operating system concepts sixth edition windows XP updat 操作系统课后答案
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0055)http://www.cse.ucsd.edu/classes/fa02/cse120/hw/hw3.html -->
<HTML><HEAD><TITLE>CSE 120 (Fall 2002) -- Homework #3</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR></HEAD>
<BODY>
<H2>CSE 120 (Fall 2002) -- Homework #3</H2><FONT color=blue size=+1><B>Out: 
11/7</B></FONT><BR><FONT color=red size=+1><B>Due: 11/19</B></FONT> 
<OL>
  <P>
  <LI><A 
  href="http://www.cse.ucsd.edu/classes/fa02/cse120/hw/vm-worksheet.html">Nachos 
  VM Worksheet</A> 
  <P></P>
  <LI>Chapter 9: 9.10, 9.14 
  <P>9.10&nbsp; Consider a paging system with the page table stored in memory. 
  <P>&nbsp;&nbsp; a. If a memory reference takes 200 nanoseconds, how long does 
  a paged memory reference take? <BR>&nbsp;&nbsp; b. If we add TLBs, and 75 
  percent of all page-table references are found in the TLBs, what is the 
  effective memory reference time? (Assume that finding a page-table entry in 
  the TLBs takes zero time, if the entry is there.) 
  <P>9.14&nbsp; Explain why it is easier to share a reentrant module using 
  segmentation than it is to do so when pure paging is used. 
  <P></P>
  <LI>Chapter 10: 10.2, 10.9, 10.19 
  <P>10.2&nbsp; Assume that you have a page-reference string for a process with 
  <I>m</I> frames (initially all empty). The page-reference string has length 
  <I>p</I>; <I>n</I> distinct page numbers occur in it. Answer these questions 
  for any page-replacement algorithms: 
  <P>&nbsp; &nbsp; a. What is a lower bound on the number of page faults? 
  <BR>&nbsp; &nbsp; b. What is an upper bound on the number of page faults? 
  <P>10.9&nbsp; Consider a demand-paging system with the following time-measured 
  utilizations: 
  <P>&nbsp; &nbsp; CPU utilization: 20% <BR>&nbsp; &nbsp; Paging disk: 97.7% 
  (demand, not storage)<BR>&nbsp; &nbsp; Other I/O devices: 5% <BR>
  <P>For each of the following, say whether it will (or is likely to) improve 
  CPU utilization. Briefly explain your answers. 
  <P>&nbsp;&nbsp; a. Install a faster CPU <BR>&nbsp;&nbsp; b. Install a bigger 
  paging disk <BR>&nbsp;&nbsp; c. Increase the degree of multiprogramming 
  <BR>&nbsp;&nbsp; d. Decrease the degree of multiprogramming <BR>&nbsp;&nbsp; 
  e. Install more main memory <BR>&nbsp;&nbsp; f. Install a faster hard disk, or 
  multiple controllers with multiple hard disks <BR>&nbsp;&nbsp; g. Add 
  prepaging to the page-fetch algorithms <BR>&nbsp;&nbsp; h. Increase the page 
  size <BR>
  <P>10.19&nbsp; We have an operating system for a machine that uses base and 
  limit registers, but we have modified the machine to provide a page table. Can 
  we set up the page tables to simulate base and limit registers? How can we do 
  so, or why can we not do so? 
  <P></P>
  <LI>[Crowley] Suppose we have an average of one page fault every 20,000,000 
  instructions, a normal instruction takes 2 nanoseconds, and a page fault 
  causes the instruction to take an additional 10 milliseconds. What is the 
  average instruction time, taking page faults into account? Redo the 
  calculation assuming that a normal instruction takes 1 nanoseconds instead of 
  2 nanoseconds. 
  <P></P>
  <LI>[Crowley] Suppose we have a computer system with a 44-bit virtual address, 
  page size of 64K, and 4 bytes per page table entry. 
  <OL>
    <LI>How many pages are in the virtual address space? 
    <LI>Suppose we use two-level paging and arrange for all page tables to fit 
    into a single page frame. How will the bits of the address be divided up? 
    <LI>Suppose we have a 4 GB program such that the entire program and all 
    necessary page tables (using two-level pages from above) are in memory. 
    (Note: It will be a <I>lot</I> of memory.) How much memory, in <B>page 
    frames</B>, is used by the program, including its page tables? </LI></OL>
  <P></P>
  <LI>[Tanenbaum] If FIFO page replacement is used with four page frames and 
  eight pages, how many page faults will occur with the reference string 
  0172327103 if the four frames are initially empty? Now repeat this problem for 
  LRU. </LI></OL><PRE>
</PRE>
<HR>

<ADDRESS><A href="mailto:voelker@cs.ucsd.edu">voelker@cs.ucsd.edu</A> 
</ADDRESS></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -