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

下载本文档

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

文档简介

1、Operating SystemsReviewQuestionsWhat are two functions of an OS?What “layer is above the OS?What “layer is below the OS?Manages all system resourcesCPUMemoryI/OFilesObjectives: Security EfficiencyConvenienceQuestionsWhat causes OS to change?What is multi-programming?What is time-sharing?Or, why aren

2、t we still running MS-DOS?What is a process? What is a thread?What is address space?What is a file?ReviewWhat 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 better6P1

3、20P232P3P4P5405660FCFSP14P212P3P4P5244060SJFP1P24P3P4P5P1812162024P2P328P4P1P2P43236404448P1P452P15660RRResponse 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

4、 completion of the processAssume all jobs submitted at same time7Response Time CalculationsJobFCFSSJFRRP10400P220124P33248P4402412P556016Average29.61688Turnaround Time CalculationsJobFCFSSJFRRP1206060P2322444P3401232P4564056P560420Average41.62842.4ReviewWhat is a “race condition?What are 3 propertie

5、s necessary for a correct “critical region solution?mutual exclusion, progress, bounded waitingWhat is Petersons Solution?Why is semaphore better than Petersons solution and TSL?ReviewWhat is deadlock?What is the four conditions for deadlock to happen?Review of Bankers AlgorithmAllocationMaxAvailabl

6、eA B CA B CA B CP00 1 07 5 33 3 2P12 0 03 2 2P23 0 29 0 2P32 1 12 2 2P40 0 24 3 3P = 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?ReviewWhat is the Memory Management Un

7、it?How does it work during a virtualphysical address translation?Translate virtual address to physical address2041008300Review 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

8、 hit ratio is 90% and there is no fault?Tanenbaum, Modern Operating Systems 3 e, (c) 2021 Prentice-Hall, Inc. All rights reserved. 0-13-6006639Multilevel Page TablesFigure 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 add

9、ress 0 x00403004?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 p

10、aging, with 10 bits in each part?ReviewWhat is internal fragmentation?What is external fragmentation?What is compaction?True or FalseWith paging, a process logical address spaces is contiguousWith paging, a process physical address spaces is contiguousPaging reduces the size of the possible address

11、space used by a processReviewDoes paging have fragmentation?No? Then why not?Yes? Then what kind?What are the overheads associated with paging?ReviewTrue or False: The logical address space cannot be bigger than the physical address spaceProcesses have big address spaces because they always need the

12、mDemand paging:Is unrelated to prepagingBrings logical pages into physical memory when requested by a processIncreases memory requirements for a systemReviewPage 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 t

13、he 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

14、 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 thrashingDegree of multiprogrammingCPU utilizationthrashing increases? Array A1024, 1024 of integer, each ro

15、w 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 faultsFirst-In-First-Out (FIFO)1233 Frames / Process1,2,3,4,1,2,5,1,2,3,4,54125349 Page FaultsHow man page faults would we

16、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

17、, (c) 2021 Prentice-Hall, Inc. All rights reserved. 0-13-6006639I-NodeHow many data blocks are there?If you added 3 more data blocks to the file, what would happen?Disk blocksi-nodenullnullnullnullnull6277ReviewDirectories: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 manag

温馨提示

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

评论

0/150

提交评论