亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? homework #4 solution.htm

?? operating system concepts sixth edition windows XP updat 操作系統課后答案
?? HTM
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0059)http://www.cse.ucsd.edu/classes/fa04/cse120/hw/hw4-sol.html -->
<HTML><HEAD><TITLE>CSE 120 (Fall 2004) -- Homework #4 Solution</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 -- Homework #4 Solution</H2><FONT color=blue size=+1><B>Out: 
11/23</B></FONT><BR><FONT color=red size=+1><B>Due: 12/2</B></FONT> 
<OL>
  <LI>Chapter 11: 11.5, 11.9, 11.12 
  <P>[4pt] 11.5&nbsp; What are the advantages and disadvantages of recording the 
  name of the program that creates a file with the file's attributes (as is done 
  in the Macintosh operating system)? 
  <P><FONT color=#0000ff>Advantages: A file tagged with a program name 
  indirectly points to the default program to open/execute the file. First, this 
  makes the file dependency on application programs very explicit. This 
  visibility is useful (more than that in having extensions in DOS and Windows) 
  to the user in determining the application associated with the file. 
  Furthermore, it removes all ambiguity when determining which program to use to 
  open a file. </FONT>
  <P><FONT color=#0000ff>Disadvantages: Some files are used by multiple 
  applications, so the one-to-one mapping with the embedded filename becomes 
  much less useful. Furthermore, the explicit association could break over time 
  if the application is moved or removed. </FONT>
  <P>11.9&nbsp; Give an example of an application in which data in a file should 
  be accessed in the following order: 
  <P>a. [2pt] Sequentially<BR><FONT color=#0000ff>A movie player that plays a 
  movie file sequentially.<BR></FONT><BR>b. [2pt] Randomly<BR><FONT 
  color=#0000ff>A movie player that allows user to start playing movie at random 
  locations of the file.<BR></FONT>
  <P>11.12&nbsp; Consider a system that supports 5000 users. Suppose that you 
  want to allow 4990 of these users to be able to access one file. 
  <P>a. [2pt] How would you specify this protection scheme in Unix?<BR><FONT 
  color=#0000ff>Add 4990 users into a group, set the file's group permission, 
  and deny anyone else.</FONT>
  <P>b. [2pt] Could you suggest another protection scheme that can be used more 
  effectively for this purpose than the scheme provided by Unix?<BR><FONT 
  color=#0000ff>Put the 10 users in the deny list of the file like NTFS. </FONT>
  <P></P>
  <LI>Chapter 12: 12.9, 12.10 
  <P>12.9&nbsp; [2pt] How do caches help improve performance? Why do systems not 
  use more or larger caches if they are so useful? 
  <P><FONT color=#0000ff>There are two reasons why increasing file cache size 
  eventually stops being useful. First, programs exhibit locality with 
  diminishing returns. Eventually, increasing the cache size only negligibly 
  improves cache hit rate. Second, the file buffer cache competes with virtual 
  memory for physical memory resources. Using more memory for the file cache 
  reduces the memory used for virtual memory. Reducing virtual memory increases 
  page faults, increasing I/Os (operatings which the file cache was trying to 
  decrease). </FONT>
  <P>12.10&nbsp; [2pt] In what situations would using memory as a RAM disk be 
  more useful than using it as a disk cache? 
  <P><FONT color=#0000ff>A RAM disk is a file system that resides completely in 
  memory. No data is stored persistently on disk. It is similar to a file buffer 
  cache, except that it is organized just like a file system and used regardless 
  of access locality to files stored in the RAM disk. Using a RAM disk is useful 
  for managing files that can be easily regenerated. For example, compilers 
  generate many intermediate files and these files can be usefully and safely 
  stored in a RAM disk. The final program files can be saved to a normal disk. 
  Many operating systems mount /tmp as a RAM disk for these reasons. </FONT>
  <P></P>
  <LI>[Crowley] A file system is the data structure that holds files and 
  directories. 
  <UL>
    <LI>[2pt] Is it possible to have two file systems on a single physical disk 
    drive? Why or why not? 
    <LI>[2pt] Is it possible to have a file system that spans two physical disk 
    drives? Why or why not? 
    <LI>[2pt] Is it possible to have a file that is not in a file system? Why or 
    why not? 
    <LI>[2pt] The mount operation allows you to graft the directory tree from 
    one file system onto the directory tree of another file system. Does this 
    mean that a file can span both file systems? Why or why not? </LI></UL>
  <P><FONT color=#0000ff>a) Yes. A file system is just a logical abstraction of 
  the disk. So, it is possible to maintain two or more file systems on the same 
  disk as long as they are physically partitioned from each other. If you 
  dual-boot your computer from the same disk, you likely have a disk with both a 
  Windows and Linux file system on it. </FONT>
  <P><FONT color=#0000ff>b) Yes. A file system can span multiple disks as long 
  as it is aware of the disks the files are scattered over. A file system 
  installed on a RAID device, for example, spans multiple disks. </FONT>
  <P><FONT color=#0000ff>c) No. A file has no logical existence (just a stream 
  of bytes) without a data structure to access it. And this data structure is 
  the file system. So a file without a file system is meaningless. <!--&nbsp;&nbsp;&nbsp; Yes.&nbsp; A file that is deleted while anotherprocess keeps it open is one example.  You cannot find it in the filesystem by name, but the file still exists.--></FONT>
  <P><FONT color=#0000ff>d) No. Mounting provides a method of traversing from 
  one file system to another through one joining node (directory) called the 
  mount point. These file systems span distinct logical disks. One single file 
  cannot reside simultaneously on multiple logical disks. Hence a single file 
  cannot span multiple file systems. </FONT>
  <P></P>
  <LI>[4pt] On a Unix file system, how many disk read operations are required to 
  read the first block of the file "/home/solaris/ieng9/cs120f/file"? Assume 
  that the master block is in memory, but nothing else. Also assume that all 
  directories are one block in size. </LI></OL>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT 
color=#0000ff>12 reads.
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0. Get the inode 
location of / from the Master block (in 
memory)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1. Read 
the inode and get the location of the / directory&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2. Read / and 
look for the entry of home. The entry gives the location of the inode of 
home.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3-10. 
repeat last two steps for home, solaris, ieng9, 
cs120f<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11. Read 
the inode and get the location of the file&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 12. Read first 
block fo file</FONT> </P></BODY></HTML>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人午夜av在线| 欧美顶级少妇做爰| 欧美日韩一区成人| 久久精品亚洲国产奇米99| 亚洲一区二区免费视频| 成年人网站91| 久久精品视频一区二区| 婷婷一区二区三区| 色综合天天综合| 国产精品国产成人国产三级| 精品午夜久久福利影院| 欧美亚洲动漫精品| 综合网在线视频| 福利视频网站一区二区三区| 91精品久久久久久蜜臀| 亚洲妇熟xx妇色黄| 色av成人天堂桃色av| 国产精品久久久久国产精品日日| 激情欧美日韩一区二区| 欧美一卡2卡3卡4卡| 亚洲影院在线观看| 色综合中文字幕| 国产精品成人一区二区艾草| 国产成人午夜99999| 久久婷婷国产综合精品青草| 麻豆国产精品777777在线| 7777女厕盗摄久久久| 午夜伦欧美伦电影理论片| 欧美日免费三级在线| 亚洲电影你懂得| 欧美狂野另类xxxxoooo| 亚洲一区二区三区不卡国产欧美| 91福利精品视频| 亚洲综合久久av| 精品视频在线免费看| 亚洲成年人网站在线观看| 欧美亚一区二区| 视频一区视频二区中文| 中文字幕第一区综合| 国产福利视频一区二区三区| 久久久蜜臀国产一区二区| 国产精品 欧美精品| 欧美国产精品一区二区| 99精品国产91久久久久久 | 欧美美女喷水视频| 日韩电影在线免费看| 日韩一级成人av| 国产高清亚洲一区| 亚洲精品中文在线| 欧美日韩aaa| 免费观看日韩av| 国产欧美视频一区二区三区| 成人国产精品免费观看| 亚洲一区二区视频| 日韩精品一区二区三区中文不卡| 国产一区在线视频| 亚洲日本乱码在线观看| 欧美日韩国产精品成人| 加勒比av一区二区| 亚洲天堂av一区| 777a∨成人精品桃花网| 成人美女视频在线观看| 亚洲成人动漫精品| 久久久噜噜噜久噜久久综合| 91久久精品一区二区三区| 日韩**一区毛片| 国产精品视频看| 91精品国产麻豆| 不卡的av网站| 免费人成精品欧美精品| 国产精品伦理在线| 欧美日本国产一区| 成人av网址在线观看| 亚洲成av人在线观看| 国产精品婷婷午夜在线观看| 在线成人午夜影院| 色天使久久综合网天天| 亚洲视频免费看| 欧美一级二级三级乱码| av在线一区二区| 蜜桃一区二区三区在线观看| 日韩一区中文字幕| 久久蜜桃av一区二区天堂| 在线视频一区二区三区| 精品系列免费在线观看| 日韩精品1区2区3区| 亚洲欧美激情在线| 国产欧美日韩在线| 日韩欧美成人一区| 欧美午夜寂寞影院| av电影一区二区| 久久99精品国产91久久来源| 夜色激情一区二区| 国产精品视频线看| 久久综合久久综合久久| 欧美日韩在线综合| 91免费看`日韩一区二区| 国产乱人伦偷精品视频免下载| 午夜电影久久久| 日韩国产欧美在线播放| 欧美电影免费观看高清完整版在| 91污片在线观看| 大美女一区二区三区| 久久精品理论片| 蜜臀av一区二区在线观看| 亚洲福利国产精品| 亚洲国产欧美在线人成| 一区二区三区在线影院| 综合久久久久久久| 亚洲欧美一区二区三区久本道91 | 欧美激情一区二区三区蜜桃视频| 在线成人高清不卡| 欧美日韩精品一区二区| 色综合视频在线观看| 色噜噜久久综合| 日本韩国一区二区三区| 一本色道久久综合狠狠躁的推荐| 91麻豆国产精品久久| 日本丰满少妇一区二区三区| 91久久精品网| 欧美日韩国产a| 欧美伦理视频网站| 91精品国产91久久久久久最新毛片 | 99久久婷婷国产精品综合| 成人激情免费视频| 99久免费精品视频在线观看| 91亚洲午夜精品久久久久久| 色婷婷综合视频在线观看| 欧美午夜一区二区三区| 欧美一级免费大片| 精品国产青草久久久久福利| 久久久亚洲精品石原莉奈| 国产精品久久久久久久久免费桃花| 中文字幕亚洲成人| 亚洲va中文字幕| 久久国产尿小便嘘嘘尿| 成人avav影音| 欧美日韩免费在线视频| 日韩欧美一二区| 日本一区二区免费在线观看视频| 亚洲欧洲美洲综合色网| 亚洲电影激情视频网站| 国产在线一区观看| 99精品国产99久久久久久白柏| 欧美日韩黄色一区二区| 欧美成人性福生活免费看| 中文乱码免费一区二区| 婷婷中文字幕一区三区| 国产精品一区二区你懂的| 色老汉一区二区三区| 欧美一级免费大片| 国产精品国产自产拍高清av | 久久精品国产亚洲aⅴ| 成人精品免费视频| 欧美挠脚心视频网站| 欧美午夜寂寞影院| 欧美夫妻性生活| 久久久久九九视频| 亚洲一区日韩精品中文字幕| 国产原创一区二区| 欧美日韩国产一级二级| 国产欧美综合色| 丝袜亚洲精品中文字幕一区| 成人网在线播放| 欧美mv日韩mv国产网站app| 一区二区三区四区在线免费观看| 激情综合色丁香一区二区| 在线一区二区三区做爰视频网站| 精品久久久久香蕉网| 亚洲二区在线观看| 午夜不卡在线视频| 91精品视频网| 国产亚洲综合在线| 夜夜嗨av一区二区三区中文字幕| 久久成人精品无人区| 91国产丝袜在线播放| 中文字幕第一区| 狠狠狠色丁香婷婷综合久久五月| 欧美午夜精品一区二区三区| 国产精品天干天干在线综合| 久99久精品视频免费观看| 欧美日韩综合不卡| 尤物在线观看一区| 99国产欧美另类久久久精品 | 欧美日韩国产在线播放网站| 亚洲欧美在线aaa| 成人午夜视频福利| 久久久久国产免费免费| 精品在线亚洲视频| 日韩一卡二卡三卡| 亚洲成人精品影院| 欧美丝袜丝交足nylons图片| 日韩毛片视频在线看| 91久久香蕉国产日韩欧美9色| 日韩精品中文字幕在线一区| 五月天婷婷综合| 欧美日韩在线亚洲一区蜜芽| 亚洲一区二区三区精品在线| 色老综合老女人久久久| 亚洲精品久久嫩草网站秘色|