欢迎来到天天文库
浏览记录
ID:51488296
大小:4.40 MB
页数:143页
时间:2020-03-24
《《并行程序设计导论》 第二章PPT.ppt》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、Copyright©2010,ElsevierInc.AllrightsReservedChapter2ParallelHardwareandParallelSoftwareAnIntroductiontoParallelProgrammingPeterPachecoCopyright©2010,ElsevierInc.AllrightsReservedRoadmapSomebackgroundModificationstothevonNeumannmodelParallelhardwareParallelsoftwareInputandoutputPerformanceParallelp
2、rogramdesignWritingandrunningparallelprogramsAssumptions#ChapterSubtitleSomebackgroundCopyright©2010,ElsevierInc.AllrightsReservedSerialhardwareandsoftwareCopyright©2010,ElsevierInc.AllrightsReservedinputoutputprogramsComputerrunsoneprogramatatime.Copyright©2010,ElsevierInc.AllrightsReservedThevon
3、NeumannArchitecture#ChapterSubtitleFigure2.1MainmemoryThisisacollectionoflocations,eachofwhichiscapableofstoringbothinstructionsanddata.Everylocationconsistsofanaddress,whichisusedtoaccessthelocation,andthecontentsofthelocation.Copyright©2010,ElsevierInc.AllrightsReservedCentralprocessingunit(CPU)
4、Dividedintotwoparts.Controlunit-responsiblefordecidingwhichinstructioninaprogramshouldbeexecuted.(theboss)Arithmeticandlogicunit(ALU)-responsibleforexecutingtheactualinstructions.(theworker)Copyright©2010,ElsevierInc.AllrightsReservedadd2+2KeytermsRegister–veryfaststorage,partoftheCPU.Programco
5、unter–storesaddressofthenextinstructiontobeexecuted.Bus–wiresandhardwarethatconnectstheCPUandmemory.Copyright©2010,ElsevierInc.AllrightsReservedCopyright©2010,ElsevierInc.AllrightsReservedmemoryCPUfetch/readCopyright©2010,ElsevierInc.AllrightsReservedmemoryCPUwrite/storevonNeumannbottleneckCopyrig
6、ht©2010,ElsevierInc.AllrightsReservedAnoperatingsystem“process”Aninstanceofacomputerprogramthatisbeingexecuted.Componentsofaprocess:Theexecutablemachinelanguageprogram.Ablockofmemory.DescriptorsofresourcestheOShasallocatedtotheprocess.Securityinformation.Informationaboutthestateoftheprocess.Copyri
7、ght©2010,ElsevierInc.AllrightsReservedMultitaskingGivestheillusionthatasingleprocessorsystemisrunningmultipleprogramssimultaneously.Eachprocesstakesturnsrunning.(timeslice)Afteritstimeisup,itwaitsuntilithasaturna
此文档下载收益归作者所有