版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、 What are the three main purposes of an operating system What is the main advantage of multiprogramming What are the main differences between operating systems for mainframe computers and personal computers Define the essential properties of the following types of operating systems:a. Batchb. Intera
2、ctivec. Time sharingd. Real timee. Networkf. Distributed How does the distinction between monitor mode and user mode function as a rudimentary (基本的)form of protection (security) system What are the differences between a trap and an interrupt What is the use of each function For what types of operati
3、ons is DMA useful Explain your answer. Give two reasons why caches are useful. What problems do they solve What problems do they cause If a cache can be made as large as the device for which it is caching (for instance, a cache as large as a disk), why not make it that large and eliminate the device
4、 What are the five major activities of an operating system in regard to process management What are the three major activities of an operating system in regard to memory management What are the three major activities of an operating system in regard to secondary-storage management What are the five
5、major activities of an operating system in regard to file management What is the purpose of the command interpreter Why is it usually separate from the kernel What is the purpose of system calls What is the main advantage of the layered approach to system design What are the main advantages of the m
6、icrokernel approach to system design Describe the differences among short-term, medium-term, and long-term scheduling. Describe the actions a kernel takes to context switch between processes. Provide two programming examples of multithreading giving improved performance over a single-threaded soluti
7、on. Provide two programming examples of multithreading that would not improve performance over a single-threaded solution. What are two differences between user-level threads and kernel-level threads Under what circumstances is one type better than the other What resources are used when a thread is
8、created How do they differ from those used when a process is created6.1 A CPU scheduling algorithm determines an order for the execution of its scheduled processes. Given n processes to be scheduled on one processor, how many possible different schedules are there Give a formula in terms of n. Defin
9、e the difference between preemptive and nonpreemptive scheduling. State why strict nonpreemptive scheduling is unlikely to be used in a computer center. Consider the following set of processes, with the length of the CPU-burst time given in milliseconds:Process Burst Time Priority P1 10 3 P2 1 1 P3
10、2 3 P4 1 4 P5 5 2The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at time 0.a. Draw four Gantt charts illustrating the execution of these processes using FCFS, SJF,a nonpreemptive priority (a smaller priority number implies a higher priority), and RR (quantum = 1) sched
11、uling.b. What is the turnaround time of each process for each of the scheduling algorithms in part ac. What is the waiting time of each process for each of the scheduling algorithms in part ad. Which of the schedules in part a results in the minimal average waiting time (over all processes) Suppose
12、that the following processes arrive for execution at the times indicated. Each process will run the listed amount of time. In answering the questions, use nonpreemptive scheduling and base all decisions on the information you have at the time the decision must be made. Process Arrival Time Burst Tim
13、e P1 8 P2 4 P3 1a. What is the average turnaround time for these processes with the FCFS scheduling algorithmb. What is the average turnaround time for these processes with the SJF scheduling algorithmc. The SJF algorithm is supposed to improve performance, but notice that we chose to run process P1
14、 at time 0 because we did not know that two shorter processes would arrive soon. Compute what the average turnaround time will be if the CPU is left idle for the first 1 unit and then SJF scheduling is used. Remember that processes P1 and P2 are waiting during this idle time, so their waiting time m
15、ay increase. This algorithm could be known as future-knowledge scheduling.Remember that turnaround time is finishing time minus arrival time, so you have to subtract the arrival times to compute the turnaround times. FCFS is 11 if you forget to subtract arrival time. What advantage is there in havin
16、g different time-quantum sizes on different levels of a multilevel queueing system Explain the differences in the degree to which the following scheduling algorithms discriminate in favor of short processes:a. FCFSb. RRc. Multilevel feedback queues List three examples of deadlocks that are not relat
17、ed to a computer-system environment. Is it possible to have a deadlock involving only one single process Explain your answer. Consider a system consisting of four resources of the same type that are shared by three processes, each of which needs at most two resources. Show that the system is deadloc
18、k-free. Consider the following snapshot of a system:Answer the following questions using the bankers algorithm:a. What is the content of the matrix Needb. Is the system in a safe statec. If a request from process P1 arrives for (0,4,2,0), can the request be granted immediately Explain the difference
19、 between internal and external fragmentation. Describe the following allocation algorithms:a. First fitb. Best fitc. Worst fit Given memory partitions of 100K, 500K, 200K, 300K, and 600K (in order), how would each of the First-fit, Best-fit, and Worst-fit algorithms place processes of 212K, 417K, 11
20、2K, and 426K (in order) Which algorithm makes the most efficient use of memory Why are page sizes always powers of 2 Consider a logical address space of eight pages of 1024 words each, mapped onto a physicalmemory of 32 frames.a. How many bits are there in the logical addressb. How many bits are the
21、re in the physical address Consider a paging system with the page table stored in memory.a. If a memory reference takes 200 nanoseconds, how long does a paged memory reference takeb. If we add associative registers, and 75 percent of all page-table references are found in the associative registers,
22、what is the effective memory reference time (Assume that finding a page-table entry in the associative registers takes zero time, if the entry is there.) Consider the following segment table:What are the physical addresses for the following logical addressesa. 0,430b. 1,10c. 2,500d. 3,400e. 4,112 Un
23、der what circumstances do page faults occur Describe the actions taken by the operatingsystem when a page fault occurs. Assume a page reference string for a process with m frames (initially all empty). The page reference string has length p with n distinct page numbers occurring in it. For any page-
24、replacement algorithms,a. What is a lower bound on the number of page faultsb. What is an upper bound on the number of page faults10.3 A certain computer provides its users with a virtual-memory space of 232 bytes. The computer has 218 bytes of physical memory. The virtual memory is implemented by p
25、aging, and the page size is 4096 bytes. A user process generates the virtual address . Explain how the system establishes the corresponding physical location. Distinguish between software and hardware operations. Assume we have a demand-paged memory. The page table is held in registers. It takes 8 m
26、illiseconds to service a page fault if an empty page is available or the replaced page is not modified, and 20 milliseconds if the replaced page is modified. Memory access time is 100 nanoseconds. Assume that the page to be replaced is modified 70 percent of the time. What is the maximum acceptable
27、page-fault rate for an effective access time of no more than 200 nanoseconds Consider the following page reference string:1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6.How many page faults would occur for the following replacement algorithms, assuming one, two, three, four, five, six, o
28、r seven frames Remember all frames are initially empty, so your first unique pages will all cost one fault each. LRU replacement FIFO replacement Optimal replacement What is the cause of thrashing How does the system detect thrashing Once it detects thrashing, what can the system do to eliminate thi
29、s problem Consider a file system where a file can be deleted and its disk space reclaimed while links to that file still exist. What problems may occur if a new file is created in the same storage area or with the same absolute path name How can these problems be avoided Explain the purpose of the o
30、pen and close operations. Give an example of an application in which data in a file should be accessed in the following order:a. Sequentiallyb. Randomly Some systems provide file sharing by maintaining a single copy of a file; other systems maintain several copies, one for each of the users sharing
31、the file. Discuss the relative merits of each approach. Consider a system that supports the strategies of contiguous, linked, and indexed allocation. What criteria should be used in deciding which strategy is best utilized for a particular file How do caches help improve performance Why do systems n
32、ot use more or larger caches if they are so useful Consider the following I/O scenarios on a single-user PC.a. A mouse used with a graphical user interfaceb. A tape drive on a multitasking operating system (assume no device preallocation is available)c. A disk drive containing user filesd. A graphics card with direct bus connection, acces
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025版微電影劇本委托創(chuàng)作合同模板3篇
- 二零二五版錨索施工項(xiàng)目質(zhì)量監(jiān)督及驗(yàn)收合同4篇
- 二零二五版高校教師博士后工作合同范本2篇
- 2025年度個(gè)人食材采購與加工一體化服務(wù)合同4篇
- 二零二五年度品牌冰箱環(huán)保認(rèn)證與推廣合同4篇
- 二零二五年度國際會議外籍嘉賓邀請合同
- 二零二五年度公共場所安全管理服務(wù)協(xié)議3篇
- 2025版國際合作項(xiàng)目合同中因國際關(guān)系變化情勢變更的合同修訂條款4篇
- 二零二五年度企業(yè)專利技術(shù)評估與交易合同3篇
- 2025年度商業(yè)地產(chǎn)租賃轉(zhuǎn)租與廣告投放合同3篇
- 第十七章-阿法芙·I·梅勒斯的轉(zhuǎn)變理論
- 焊接機(jī)器人在汽車制造中應(yīng)用案例分析報(bào)告
- 合成生物學(xué)在生物技術(shù)中的應(yīng)用
- 中醫(yī)門診病歷
- 廣西華銀鋁業(yè)財(cái)務(wù)分析報(bào)告
- 無違法犯罪記錄證明申請表(個(gè)人)
- 大學(xué)生勞動教育PPT完整全套教學(xué)課件
- 繼電保護(hù)原理應(yīng)用及配置課件
- 《殺死一只知更鳥》讀書分享PPT
- 蓋洛普Q12解讀和實(shí)施完整版
- 2023年Web前端技術(shù)試題
評論
0/150
提交評論