我的实验3:磁盘调度算法的实现.pdf
《我的实验3:磁盘调度算法的实现.pdf》由会员分享,可在线阅读,更多相关《我的实验3:磁盘调度算法的实现.pdf(9页珍藏版)》请在三一文库上搜索。
1、ache d)andon-timecontrolproblems;severitygreaterrisk,accordingtot herequiredtroubleshooting,registrationform,andsignedbythoseresponsibleforthese curityoftheunitforthefirstafterescalation.Thirdarticleopenminemanageroncoalmine productionjobdistrictwithinofse curityhiddentroubleshooting,andgovernancean
2、dreportfullisresponsiblefor;se curityDeputyManagertieManagerwork,theparagraphconstructionteamheadandthebusine ssdepartmentheadMember,andrunmaintenancepersonnel,areshouldaccor dingtot heirofdutiesrange,onproductionequipment,andfacilities,andsiteenvironment,aspectsofsecurityhiddenforcheckandreport,and
3、byhi ddenrectifi cationprogrammeforhiddengover nance.Fourthopen-pitminesafetysectionisresponsibleforthesupervisionandinspectioni ntheproductionareatroubleshooting,managementandreporting ofcomprehensivew ork.Articlescopeandfocusoftheinspectionpersonnelatvariouslevels:1,operatingpersonnelbeforetakingo
4、verandshiftbeforethejurisdi ctionareatocondu ctacomprehensiveinspectionofequipment,runningthesquadl ea erondutyduringmajore qui pmentoverhaul,beforeandaftertheshifttode signatedstafftounderstandtheoperationofequipmentinthee qui pmentandcheckonfocus.2,equi pmentrepairequipmenttoselectmaintenancecheck
5、atleasttwiceaweektokeyequi pmentanddefectivedevicestoincreasethefrequencyofinspection.Teamleaderde dicatedtothedeviceeverydayoperationofalldeviceswithinthescopeofmaintenancepersonnelundersta ndthemaintenanceandinspectionofkeyequipment.Paragraph3,theow nerandprofessionalandtechnicalpersonnelshoul dbe
6、carriedoutdailyafterworksitevisitinspection.Evening.Controlroom:focusedoncoalseamspontaneouscombustionundertroubleshooting,help,landslide,coalfire,earth-movi ng,roadcarwallsitesafetysupervision,andconscientiouslyimplementtheminerectificationmeasures.Productiontechnologysection:isresponsiblefortroubl
7、eshootingwhetherexistsSupercapacity,andSuper 实验报告 学院(系)名称:计算机与通信工程学院 姓名刘子贤学号专业计算机科学与技术(中加 ) 班级2012 级 4 班实验项目实验三:磁盘调度算法的实现 课程名称操作系统课程代码 实验时间 2014 年 12 月 16 日第 5、6 节 2014 年 12 月 19 日第 1、2 节 2015 年 1 月 6 日第 5、6 节 实验地点 软件实验室7-216 软件实验室7-216 软件实验室7-216 批改意见成绩 教师签字: 实验内容: 1 本实验是模拟操作系统的磁盘寻道方式,运用磁盘访问顺序的不同来设
8、计磁盘的调度算法。 2 实现的磁盘调度算法有FCFS,SSTF, SCAN ,CSCAN 和 NStepSCAN 算法。 3 设定开始磁道号寻道范围,依据起始扫描磁道号和最大磁道号数,随机产生要进行寻道的磁道号序 列。 4 选择磁盘调度算法,显示该算法的磁道访问顺序,计算出移动的磁道总数和平均寻道总数。 5 按算法的寻道效率进行排序,并对各算法的性能进行分析比较。 实验要求: 1详细描述实验设计思想、程序结构及各模块设计思路; 2 详细描述程序所用数据结构及算法; 3 明确给出测试用例和实验结果; 4 为增加程序可读性,在程序中进行适当注释说明; 5 认真进行实验总结,包括:设计中遇到的问题、
9、解决方法与收获等; 6 实验报告撰写要求结构清晰、描述准确逻辑性强; 7 实验过程中,同学之间可以进行讨论互相提高,但绝对禁止抄袭。 【实验过程记录(源程序、测试用例、测试结果及心得体会等)】 源程序: ache d)andon-timecontrolproblems;severitygreaterrisk,accordingtot herequiredtroubleshooting,registrationform,andsignedbythoseresponsibleforthese curityoftheunitforthefirstafterescalation.Thirdarticl
10、eopenminemanageroncoalmineproductionjobdistrictwithinofse curityhiddentroubleshooting,andgovernancea ndreportfullisresponsiblefor;se curityDeputyManagertieManagerwork,theparagraphconstructionteamheadandthebusine ssdepartmentheadMember,andrunmaintenancepersonnel,areshouldaccor dingtot heirofdutiesran
11、ge,onproductionequipment,andfacilities,andsiteenvironment,aspectsofsecurityhiddenforcheckandreport,andbyhi ddenrectifi cationprogrammeforhiddengover nance.Fourthopen-pitminesafetysectionisresponsibleforthesupervisionandinspectioni ntheproductionareatroubleshooting,managementandreporting ofcomprehens
12、ivew ork.Articlescopeandfocusoftheinspectionpersonnelatvariouslevels:1,operatingpersonnelbeforetakingoverandshiftbeforethejurisdi ctionareatocondu ctacomprehensiveinspectionofequipment,runningthesquadl ea erondutyduringmajore qui pmentoverhaul,beforeandaftertheshifttode signatedstafftounderstandtheo
13、perationofequipmentinthee qui pmentandcheckonfocus.2,equi pmentrepairequipmenttoselectmaintenancecheckatleasttwiceaweektokeyequi pmentanddefe ctivedevicestoincrea sethefrequencyofinspection.Teamleaderde dicatedtothedeviceeverydayoperationofalldeviceswithinthescopeofmaintenancepersonnelundersta ndthe
14、maintenanceandinspectionofkeyequipment.Paragraph3,theow nerandprofessionalandtechnicalpersonnelshoul dbecarriedoutdailyafterworksitevisitinspection.Evening.Controlroom:focusedoncoalseamspontaneouscombustionundertroubleshooting, help,landslide,coalfire,earth-movi ng,roadcarwallsitesafetysupervision,a
15、ndconscientiouslyimplementtheminerectificationmeasures.Productiontechnologysection:isresponsiblefortroubleshootingwhetherexistsSupercapacity,andSuper #include #include void FCFS(int b,int n,int init) int i,s,sum; int a20; for(i=0;i=0;i-) s=a0; p=0; for(j=0;j=0;i-) biaoji=0; for(j=0;j=0;i-) biaoji=0;
16、 for(j=0;j0) biaoji=1; p=j; break; if(biaoji=1) s=ap; for(j=0;jki-) biaoji=0; ached)andon-timecontrolproblems;severitygreaterrisk,accordingtotherequiredtroubleshooting,registrationform,andsignedbythoseresponsibleforthese curityoftheunitforthefirstafterescalation.Thirdarticleope nminemanageroncoalmin
17、eproductionjobdistrictwithinofsecurityhiddentroubleshooting,andgovernancea ndreportfullisresponsiblefor;se curityDeputyManagertieManagerwork,theparagraphconstructionteamheadandthebusine ssdepartmentheadMember,andrunmaintenancepersonnel,areshouldaccor dingtot heirofdutiesrange,onproductionequipment,a
18、ndfacilities,andsiteenvironment,aspectsofsecurityhiddenforcheckandreport,a ndbyhiddenrectifi cationprogrammeforhiddengover nance.Fourthopen-pitminesafetysectionisresponsibleforthesupervisionandinspectioni ntheproductionareatroubleshooting,managementandreportingofcomprehensivework.Articlescopeandfocu
19、softheinspectionpersonnelatvariouslevels:1,operatingpersonnelbeforetakingoverandshiftbeforethejurisdi ctionareatocondu ctacom prehensiveinspectionofequi pment,runningthesquadl ea erondutyduringmajore qui pmentoverhaul,beforeandaftertheshifttode signatedstafftounderstandtheoperationofequipmentinthee
20、qui pmentandcheckonfocus.2,equi pmentrepairequipmenttoselectmaintenancecheckatleasttwiceaweektokeyequi pmentanddefectivedevicestoincrea sethefrequencyofinspection.Teamleaderde dicatedtothedeviceeverydayoperationofalldeviceswithinthescopeofmaintenancepersonnelundersta ndthemaintenanceandinspectionofk
21、eyequipment.Paragraph3,theow nerandprofessionalandtechnicalpersonnelshoul dbecarriedoutdailyafterworksitevisitinspection.Evening.Controlroom:focusedoncoalseamspontaneouscombustionundertroubleshooting,help,landslide,coalfire,earth-movi ng,roadcarwallsitesafetysupervision,andconscientiouslyimplementth
22、eminerectificationmeasures.Productiontechnologysection:isre sponsiblefortroubleshootingwhetherexistsSupercapacity,andSuper第 5 页 共 9 页 for(j=0;j0) biaoji=1; p=j; break; if(biaoji=1) s=ap; for(j=0;jki-) s=a0; for(j=0;j=i;j+) if(aj-ks-k) s=aj; p=j; ap=ai; printf(“ 第%d 次访问的磁道 :%dn“,n-i,s); sum+=s-k; k=s
23、; printf(“ 平均寻道长度 :%fn“,sum*1.0/n); ache d)andon-timecontrolproblems;severitygreaterrisk,accordingtot herequiredtroubleshooting,registrationform,andsignedbythoseresponsibleforthese curityoftheunitforthefirstafterescalation.Thirdarticleopenminemanageroncoalmineproductionjobdistrictwithinofse curityhi
24、ddentroubleshooting,andgovernancea ndreportfullisresponsiblefor;se curityDeputyManagertieManagerwork,theparagraphconstructionteamheadandthebusine ssdepartmentheadMember,andrunmaintenancepersonnel,areshouldaccor dingtot heirofdutiesrange,onproductionequipment,andfacilities,andsiteenvironment,aspectso
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 实验 磁盘 调度 算法 实现
链接地址:https://www.31doc.com/p-4953058.html