ImageVerifierCode 换一换
格式:PPTX , 页数:33 ,大小:190.73KB ,
资源ID:4131713      下载积分:4 金币
验证码下载
登录下载
邮箱/手机:
验证码: 获取验证码
温馨提示:
支付成功后,系统会自动生成账号(用户名为邮箱或者手机号,密码是验证码),方便下次登录下载和查询订单;
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/4131713.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  
声明  |  会员权益     获赠5币     写作写作

1、填表:    下载求助     索取发票    退款申请
2、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
3、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
4、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
5、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前自行私信或留言给上传者【丰****】。
6、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
7、本文档遇到问题,请及时私信或留言给本站上传会员【丰****】,需本站解决可联系【 微信客服】、【 QQ客服】,若有其他问题请点击或扫码反馈【 服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【 版权申诉】”(推荐),意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:4008-655-100;投诉/维权电话:4009-655-100。

注意事项

本文(操作系统概念中文版课后答案市公开课一等奖百校联赛获奖课件.pptx)为本站上传会员【丰****】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4008-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

操作系统概念中文版课后答案市公开课一等奖百校联赛获奖课件.pptx

1、文档仅供参考,如有不当之处,请联系改正。1-cont.n2.What is the main advantage of multiprogramming?n高效地使用CPU,经过重合来自不一样用户对CPU和I/O设备需求n增加CPU利用,设法让CPU执行有意义指令第1页文档仅供参考,如有不当之处,请联系改正。1-cont.n3.In a multiprogramming and time-sharing environment,several users share the system simultaneously.This situation can result in various s

2、ecurity problems.na.What are two such problems?nb.Can we ensure the same degree of security in a time-shared machine as we have in a dedicated machine?Explain your answer.n用户之间相互偷数据、代码n对系统资源使用记账信息第2页文档仅供参考,如有不当之处,请联系改正。1-cont.n4.Define the essential properties of the following types of operating sys

3、tems:na.Batchn相同需求Job分批、成组在计算机上执行,Job由操作员或自动Job程序装置装载;n能够经过采取 buffering,off-line operation,spooling,multiprogramming 等技术使CPU 和 I/O不停忙来提升性能n批处理适合于需要极少用户交互Job。nb.Interactiven由许多短交易组成,下一次交易结果可能不可预知n需要响应时间短第3页文档仅供参考,如有不当之处,请联系改正。1-cont.nc.Time sharingn使用CPU调度和多道程序提供对系统经济交互式使用,CPU快速地在用户之间切换n普通从终端读取控制,输出马

4、上打印到屏幕nd.Real timen在专门系统中使用,从传感器读取信息,必须在要求时间内作出响应以确保正确执行第4页文档仅供参考,如有不当之处,请联系改正。1-cont.ne.Networkn在通用OS上添加n联网、通信功效n远程过程调用n文件共享nf.Distributedn含有联网、通信功效n提供远程过程调用n提供多处理机统一调度调度n统一存放管理n分布式文件系统第5页文档仅供参考,如有不当之处,请联系改正。1-cont.n5.Describe the differences between symmetric and asymmetric multiprocessing.What ar

5、e three advantages and one disadvantage of multiprocessor systems?nSymmetric multiprocessing中全部处理器同等对待,I/O能够在任意CPU上处理。nAsymmetric multiprocessing含有一个主CPU和多个从CPU,主CPU将任务分配到从CPU,I/O通常只能由主CPU处理。n多处理机系统优点n比多个计算机系统可能更省钱(一样CPU个数)n执行程序更加快n可靠性更高n缺点:软硬件更复杂n6.thinking:what kind of features may exist in CC,IOT

6、 or CPS?第6页文档仅供参考,如有不当之处,请联系改正。Chapter 2n1.How does the distinction between monitor mode and user mode function as a rudimentary form of protection(security)system?n经过建立一组只能在monitor mode才能执行特权指令集,OS能够确保总是能控制整个系统。第7页文档仅供参考,如有不当之处,请联系改正。2-cont.n2.What are the differences between a trap and an interrup

7、t?What is the use of each function?nAn interrupt是硬件产生系统内流改变nA trap是软件产生“中止”。ninterrupt能够被I/O用来产生完成信号,从而防止CPU对设备轮询 nA trap能够用来调用OS例程或者捕捉算术错误 第8页文档仅供参考,如有不当之处,请联系改正。2-cont.n3.Which of the following instructions should be privileged?na.Set value of timer.nb.Read the clock.nc.Clear memory.nd.Turn off in

8、terrupts.ne.Switch from user to monitor mode.na.Set value of timer.nc.Clear memory.nd.Turn off interrupts.ne.Switch from user to monitor mode.第9页文档仅供参考,如有不当之处,请联系改正。2-cont.n4.Protecting the operating system is crucial to ensuring that the computer system operates correctly.Provision of this protecti

9、on is the reason behind dual-mode operation,memory protection,and the timer.To allow maximum flexibility,however,we would also like to place minimal constraints on the user.The following is a list of operations that are normally protected.What is the minimal set of instructions that must be protecte

10、d?na.Change to user mode.nb.Change to monitor mode.nc.Read from monitor memory.nd.Write into monitor memory.ne.Fetch an instruction from monitor memory.nf.Turn on timer interrupt.ng.Turn off timer interrupt.nb.Change to monitor mode.nc.Read from monitor memory.nd.Write into monitor memory.ng.Turn of

11、f timer interrupt.第10页文档仅供参考,如有不当之处,请联系改正。Chapter 3n1.What are the five major activities of an operating system in regard to process management?n用户和系统进程地创建和删除n 进程挂起和恢复n 提供进程同时机制n 提供进程通信机制n 提供死锁处理机制第11页文档仅供参考,如有不当之处,请联系改正。3-cont.n2.What are the three major activities of an operating system in regard

12、to memory management?n跟踪内存使用情况(哪一部分被使用、谁使用)n当内存空间可用时候,确定将哪些进程调入内存(job调度)n按需要分配和回收内存第12页文档仅供参考,如有不当之处,请联系改正。3-cont.n3.What are the three major activities of an operating system in regard to secondary-storage management?n剩下空间管理n存放分配n磁盘调度第13页文档仅供参考,如有不当之处,请联系改正。3-cont.n4.What are the five major activit

13、ies of an operating system in regard to file management?n文件创建和删除n目录创建和删除n目录和文件操作原语支持n文件到二级存放映射n将文件备份到非易失存放设备第14页文档仅供参考,如有不当之处,请联系改正。3-cont.n5.What is the purpose of the command interpreter?Why is it usually separate from the kernel?n读取命令(从用户或者命令文件)并执行(转化成系统调用)n可能会经常改变第15页文档仅供参考,如有不当之处,请联系改正。3-cont.n

14、6.What is the purpose of system calls?n让用户级进程能够请求操作系统所提供服务第16页文档仅供参考,如有不当之处,请联系改正。3-cont.n7.What is the purpose of system programs?n为程序开发和运行提供了方便环境n给用户提供基本公共功效函数,为用户在不用自己写代码情况下处理公用问题n8.试着安装虚拟机试着安装虚拟机VMWARE,然后在这台虚拟机上安,然后在这台虚拟机上安装一个操作系统装一个操作系统n9.阅读阅读Linux源码,给出某一个源码,给出某一个system call源码并分源码并分析,分析析,分析init

15、/main.c给出流程图给出流程图第17页文档仅供参考,如有不当之处,请联系改正。Chapter 4n1.Describe the differences among short-term,medium-term,and long-term scheduling.nShort-term,CPU调度nLong-term,job调度nMedium-term,分时系统中中间调度级第18页文档仅供参考,如有不当之处,请联系改正。4-cont.n2.Describe the actions a kernel takes to context switch between processes.n保留正在运

16、行进程状态、恢复欲调度到CPU进程状态第19页文档仅供参考,如有不当之处,请联系改正。4-cont.n3.What are the benefits and detriments of each of the following?Consider both the systems and the programmers levels.na.Symmetric and asymmetric communicationnb.Automatic and explicit bufferingnc.Send by copy and send by referencend.Fixed-sized and

17、variable-sized messages第20页文档仅供参考,如有不当之处,请联系改正。4-cont.n4.The correct producerconsumer algorithm in the ppt,allows only n-1 buffers to be full at any one time.Modify the algorithm to allow all buffers to be utilized fully.第21页文档仅供参考,如有不当之处,请联系改正。4-cont.n5.Consider the interprocess-communication schem

18、e where mailboxes are used.na.Suppose a process P wants to wait for two messages,one from mailbox A and one from mailbox B.What sequence of send and receive should it execute?nb.What sequence of send and receive should P execute if P wants to wait for one message either from mailbox A or from mailbo

19、x B(or from both)?nc.A receive operation makes a process wait until the mailbox is nonempty.Either devise a scheme that allows a process to wait until a mailbox is empty,or explain why such a scheme cannot exist.nanreceive(A,m1)receive(B,m2)send(c,m3)nreceive(B,m1)receive(A,m2)send(c,m3)nbnreceive(A

20、,m1)receive(B,m2)send(c,m3)nreceive(B,m1)receive(A,m2)send(c,m3)nreceive(A,m1)send(c,m3)receive(B,m2)nreceive(B,m1)send(c,m3)receive(A,m2)第22页文档仅供参考,如有不当之处,请联系改正。4-cont.n6.阅读分析阅读分析Linux终止进程源码终止进程源码n7.编程,实现一个简单网络聊天程序,用到编程,实现一个简单网络聊天程序,用到socket和和fork()(接收和发送在(接收和发送在fork出进程中)出进程中)第23页文档仅供参考,如有不当之处,请联系改

21、正。Chapter 5n1.Provide two programming examples of multithreading giving improved performance over a single-threaded solution.n能够并发多任务nWeb浏览器,数据可并行处理n2.Provide two programming examples of multithreading that would not improve performance over a single-threaded solution.n不能够并发单任务n用多个线程读一个文件n后续结果必须依赖于前

22、面第24页文档仅供参考,如有不当之处,请联系改正。5 cont.n3.What are two differences between user-level threads and kernel-level threads?Under what circumstances is one type better than the other?n内核可知与不可知n调度者不一样n与进程关系n运行效率、内核复杂度、用户可控程度n4.What resources are used when a thread is created?How do they differ from those used wh

23、en a process is created?nTCB,存放器组,栈,调度信息nPCB,全部与进程执行和调度相关资源与信息,内存,打开文件,环境变量第25页文档仅供参考,如有不当之处,请联系改正。5-cont.n5.Write a multithreaded Pthread or Java program that outputs prime numbers.This program should work as follows:The user will run the program and will enter a number on the command line.The prog

24、ram will then create a separate thread that outputs all the prime numbers less than or equal to the number that the user entered.n6.编程,实现一个简单网络聊天程序,用到编程,实现一个简单网络聊天程序,用到socket和和pthread(接收和发送在(接收和发送在pthread创建线程中)创建线程中)第26页文档仅供参考,如有不当之处,请联系改正。Chapter 6n1.A CPU scheduling algorithm determines an order f

25、or 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.nN个进程排列问题nPnn=n!n2.Define the difference between preemptive and nonpreemptive scheduling.State why strict nonpreemptive scheduli

26、ng is unlikely to be used in a computer center.n对CPU控制权主动还是被动放弃n不可能采取纯非剥夺机制:考虑到多道程序、分时共享,公平和轻重缓急第27页文档仅供参考,如有不当之处,请联系改正。6-cont.n3.Consider the following set of processes,with the length of the CPU-burst time given in milliseconds:nThe processes are assumed to have arrived in the order P1,P2,P3,P4,P5

27、,all at time 0.na.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)scheduling.nb.What is the turnaround time of each process for each of the scheduling algorithms in part

28、 a?nc.What is the waiting time of each process for each of the scheduling algorithms in part a?nd.Which of the schedules in part a results in the minimal average waiting time(over all processes)?第28页文档仅供参考,如有不当之处,请联系改正。6-cont.n6.3 na.n b.n c.nd.SJF第29页文档仅供参考,如有不当之处,请联系改正。6-cont.n4.Suppose that the f

29、ollowing 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.na.What is the average turnaround time for t

30、hese processes with the FCFS scheduling algorithm?(8-0)+(12-0.4)+(13-1.0)/3=10.53 nb.What is the average turnaround time for these processes with the SJF scheduling algorithm?(8-0)+(13-0.4)+(9-1.0)/3=9.53nc.The SJF algorithm is supposed to improve performance,but notice that we chose to run process

31、P1 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 ma

32、y increase.This algorithm could be known as future-knowledge scheduling.(14-0)+(6-0.4)+(2-1.0)/3=6.87第30页文档仅供参考,如有不当之处,请联系改正。6-cont.n5.Consider the following preemptive priority-scheduling algorithm based on dynamically changing priorities.Larger priority numbers imply higher priority.When a process

33、 is waiting for the CPU(in the ready queue but not running),its priority changes at a rate A;when it is running,its priority changes at a rate B.All processes are given a priority of 0 when they enter the ready queue.The parameters A and B can be set to give many different scheduling algorithms.na.W

34、hat is the algorithm that results from BA0?nb.What is the algorithm that results from AB0?nFCFSnLIFO第31页文档仅供参考,如有不当之处,请联系改正。6-cont.n6.Many CPU scheduling algorithms are parameterized.For example,the RR algorithm requires a parameter to indicate the time slice.Multilevel feedback queues require param

35、eters to define the number of queues,the scheduling algorithms for each queue,the criteria used to move processes between queues,and so on.These algorithms are thus really sets of algorithms(for example,the set of RR algorithms for all time slices,and so on).One set of algorithms may include another

36、(for example,the FCFS algorithm is the RR algorithm with an infinite time quantum).What(if any)relation holds between the following pairs of sets of algorithms?na.Priority and SJF(最短job优先级最高)nb.Multilevel feedback queues and FCFS(MLFQ最低级是FCFS)nc.Priority and FCFS(FCFS给存在时间最长优先级最高)nd.RR and SJF(none)

37、第32页文档仅供参考,如有不当之处,请联系改正。6-cont.n7.Suppose that a scheduling algorithm(at the level of short-term CPU scheduling)favors those processes that have used the least processor time in the recent past.Why will this algorithm favor I/O-bound programs and yet not permanently starve CPU-bound programs?n8.阅读分析阅读分析Linux sched.c第33页

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        获赠5币

©2010-2024 宁波自信网络信息技术有限公司  版权所有

客服电话:4008-655-100  投诉/维权电话:4009-655-100

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :gzh.png    weibo.png    LOFTER.png 

客服