房地产开发企业资质证书网上申报填  .._第1页
房地产开发企业资质证书网上申报填  .._第2页
房地产开发企业资质证书网上申报填  .._第3页
房地产开发企业资质证书网上申报填  .._第4页
房地产开发企业资质证书网上申报填  .._第5页
已阅读5页,还剩26页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Operating Systems,Review,Questions,What are two functions of an OS?What “layer” is above the OS?What “layer” is below the OS?,Manages all system resourcesCPUMemoryI/OFilesObjectives: Security EfficiencyConvenience,Questions,What causes OS to change?What is multi-programming?What is time-sharing?Or, why arent we still running MS-DOS?What is a process? What is a thread?What is address space?What is a file?,Review,What is (average) waiting time? Explain how SJF,FCFS,RR etc. worksTrue or False:FCFS is optimal in terms of avg waiting timeMost processes are CPU boundThe shorter the time quantum, the better,6,Response timeEstimate by time from job submission to time to first CPU dispatchAssume all jobs submitted at same time, in order givenTurnaround timeTime interval from submission of a process until completion of the processAssume all jobs submitted at same time,7,Response Time Calculations,8,Turnaround Time Calculations,Review,What is a “race condition”?What are 3 properties necessary for a correct “critical region” solution?mutual exclusion, progress, bounded waitingWhat is Petersons Solution?Why is semaphore better than Petersons solution and TSL?,Review,What is deadlock?What is the four conditions for deadlock to happen?,Review of Bankers Algorithm,P = P0, P1, , P4; R=A(10), B(5), C(7)Snapshot at time T0:,Can request for (1,0,2) by P1 be granted?Can request for (3,3,0) by P4 be granted? Can request for (0,2,0) by P0 be granted?,Review,What is the Memory Management Unit?How does it work during a virtualphysical address translation?,Translate virtual address to physical address2041008300,Review,A paging scheme uses a Translation Loo-aside Buffer (TLB) A TLB access takes 10 ns and a main memory access takes 50 ns. What is the effective access time (in ns) if the TLB hit ratio is 90% and there is no page-fault?,Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639,Multilevel Page Tables,Figure 3-13. (a) A 32-bit address with two page table fields. (b) Two-level page tables.,What is the PT1 and PT2 value for a virtual address 0x00403004?,?,A computer has 32-bit virtual addresses and 4-KB pages. The program and data together fit in the lowest page (0-4095) the stack fits in the highest page. How many entries are needed in the page table if traditional paging is used? How many page table entries are needed for 2-level paging, with 10 bits in each part?,Review,What is internal fragmentation?What is external fragmentation?What is compaction?,True or False,With paging, a process logical address spaces is contiguousWith paging, a process physical address spaces is contiguousPaging reduces the size of the possible address space used by a process,Review,Does paging have fragmentation?No? Then why not?Yes? Then what kind?What are the overheads associated with paging?,Review,True or False: The logical address space cannot be bigger than the physical address spaceProcesses have big address spaces because they always need themDemand paging:Is unrelated to prepagingBrings logical pages into physical memory when requested by a processIncreases memory requirements for a system,Review,Page faultsWhat is a page fault?What does an OS do during a page fault?What is a Page Replacement Algorithm?What is “Beladys Anomaly”?How does the Optimal algorithm work?How does Enhanced Second Chance work?What is thrashing?How do we fix it?,?,A computer has four page frames. The time of loading, time of last access, and the R and M bits for each page are as shown below (the times are in clock ticks): Page Loaded Last Ref. R M 0 126 285 1 0 1 120 2650 0 2 140 270 0 1 3 110 280 1 1 (a) Which page will NRU replace? (b) Which page will FIFO replace? (c) Which page will LRU replace? (d) Which page will second chance replace?,Cause of thrashing,Degree of multiprogramming,CPU utilization,thrashing increases,?,Array A1024, 1024 of integer, each row is stored in one pageProgram 1for j := 1 to 1024 dofor i := 1 to 1024 doAi,j := 0;1024 1024 page faults Program 2for i := 1 to 1024 dofor j := 1 to 1024 doAi,j := 0;1024 page faults,First-In-First-Out (FIFO),3 Frames / Process,1,2,3,4,1,2,5,1,2,3,4,5,4,1,2,5,3,4,9 Page Faults,How man page faults would we have if we had4 Frames/Process?,?,How long does it take to load a 64KB program from a disk whose average seek time and rotation time are 10 msec, and whose tracks hold 32KB.For 2KB page size?For 4KB page size?,Figure 4-34. A UNIX i-node.,The UNIX V7 File System (2),Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639,I-Node,How many data blocks are there?If you added 3 more data blocks to the file, what would happen?,Disk blocks,i-node,null,null,null,null,null,62,77,Review,Directories:In what way is a directory different than a file?In what way is a directory similar to a file?Aliases:Describe a hard-linkDescribe a soft-linkFree space management:If the si

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论