版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
PrinciplesofOperatingSystem
操作系統(tǒng)原理AboutThisCourse課程基本情況課程類別:學(xué)科專業(yè)課必修課學(xué)時學(xué)分:總學(xué)時64學(xué)時實驗8學(xué)時4學(xué)分先修課程:數(shù)據(jù)結(jié)構(gòu)、程序設(shè)計語言課程內(nèi)容主要講授操作系統(tǒng)基本原理,即教材第1章至第13章成績評定方法期末考試成績占70%,平時成績占30%平時成績包括:作業(yè)、實驗、課堂、考勤Textbook&ReferencesAbrahamSilberschatz.AppliedOperatingSystemConcepts.HigherEducationPress,2001,5湯子瀛.計算機操作系統(tǒng).西安:西北電子科技大學(xué)出版社,1999,5胡志剛.計算機操作系統(tǒng).長沙:中南大學(xué)出版社,2005,8張堯?qū)W.計算機操作系統(tǒng)教程(第二版).北京:清華大學(xué)出版社,2000,8Overview(1-3)Mainlyexplain:Whatoperatingsystemsare?Howoperatingsystemsaredesignedandconstructed?Whatthecommonfeaturesofanoperatingsystemsare?Processmanagement(4-8)Mainlyintroducemethodsfor:ProcessschedulingInterprocesscommunicationProcesssynchronizationDeadlockhandlingDiscussionofthreadsStoragemanagement(9-13)Mainlydealwith:MemorymanagementVirtualmemoryI/OsystemsMass-storagestructureChapter1:IntroductionWhatisanOperatingSystem?HistoryofOperatingSystemsTheOperatingSystemZooWhatisanOperatingSystem?Therearealotofdefinitions.Doyouknow?DefinitionfromWikipediaAnoperatingsystem(OS)isaninterfacebetweenhardwareandapplications;itisresponsibleforthemanagementandcoordinationofactivitiesandthesharingofthelimitedresourcesofthecomputer.WhatisanOperatingSystem?aprogramthatactsasanintermediarybetweenauserofacomputerandthecomputerhardware.Operatingsystempurpose:Provideanenvironmentinwhichausercanexecuteprograms.Operatingsystemgoals:Makethecomputersystemconvenienttouse(Convenience).
Usethecomputerhardwareinanefficientmanner(Efficiency).DefinitionsofanOperatingSystemResourceallocator
–managesandallocatesresources.管理和分配資源Controlprogram–controlstheexecutionofuserprogramsandoperationsofI/Odevices.控制用戶程序運行和I/O設(shè)備的操作Kernel–theoneprogramrunningatalltimes(allelsebeingapplicationprograms).全時運行的一個程序OurTraditionalDefinitionAsetofprogramsthatcontrolandmanagecomputerhardwareandsoftware,andorganizecomputer'sworkflowsoastomakethecomputersystemconvenientforuserstousereasonablyandefficiently.控制和管理計算機軟硬件資源,合理組織計算機工作流程,方便用戶合理使用計算機的程序的集合。AbstractViewofSystemComponents
Virtualmachine
裸機在每增加一層軟件后,就成為一個功能更強的機器,通常將這個“新的功能更強的機器”稱為“虛擬機”Chapter1:IntroductionWhatisanOperatingSystem?
HistoryofOperatingSystems
TheOperatingSystemZooHistoryofOperatingSystemsFirstgeneration1945–1955vacuumtubes,plugboards(noOS)Secondgeneration1955–1965transistors,batchsystemsThirdgeneration1965–1980ICs,multiprogrammingFourthgeneration1980–presentpersonalcomputers,hand-helddevices,sensorsENIAC
(ElectronicNumericalIntegratorAndComputer)Itcontained17,468vacuumtubes,weighed30shorttons(27t),andtookup680squarefeet(63m2),andconsumed150kWofpower.InputwaspossiblefromanIBMcardreader,andanIBMcardpunchwasusedforoutput.Noprogramminglanguage,letaloneOSPunchedCardAFamousRemark!
"Ithinkthereisaworldmarketformaybefivecomputers."--ThomasWatson,chairmanofIBM,1943EarlyBatchSystembringcardsto1401readcardstotapeputtapeon7094whichdoescomputingputtapeon1401whichprintsoutputBatchSystemsHireanoperator設(shè)置一個操作員User1operatorReducesetuptimebybatchingsimilarjobs
批量處理同類作業(yè)減少了設(shè)置時間OS’smaintask:Automaticjobsequencing–automaticallytransferscontrolfromonejobtoanother.Residentmonitorinitialcontrolinmonitor初始化管理程序controltransferstojob轉(zhuǎn)換控制到作業(yè)whenjobcompletescontroltransfersbacktomonitor作業(yè)=程序+數(shù)據(jù)+處理步驟ControlCards(Cont.)Specialcardsthattelltheresidentmonitorwhichprogramstorun$JOB
$FTN
$RUN
$DATA
$ENDSpecialcharactersdistinguishcontrolcardsfromdataorprogramcards
特定的字符把數(shù)據(jù)卡片和程序卡片區(qū)分開來StructureofatypicalFortranMonitoringSystemjob$JOBcardspecifies:themaxruntimeinminutesTheaccountnumbertobechargedTheprogrammersname$FORTRANcard:tellstheoperatingSystemtoloadFortrancompiler$RUNmeansruntheprogramwithThefollowingdata$ENDendofjob
AFamousRemark!"Ihavetravelledthelengthandbreadthofthiscountry,andtalkedwiththebestpeople,andIcanassureyouthatdataprocessingisafadthatwon'tlastouttheyear."--TheeditorinchargeofbusinessbooksforPrenticeHall,1957
Thirdgeneration1965–1980IntegratedCircuitsandmultiprogrammingIBM’sSystem/360mainframecomputerwithastandardarchitecturedesignedtohandlebothscientificandcommercialcomputingThirdgeneration1965–1980Prerequisite:interrupt,ChannelI/OchannelI/Oisagenerictermthatreferstoahigh-performanceinput/output(I/O)architecturethatisimplementedinvariousformsonanumberofcomputerarchitectures,especiallyonmainframecomputers.Inthepasttheyweregenerallyimplementedwithacustomprocessor,knownalternatelyasperipheralprocessor,I/Oprocessor(IOP),I/Ocontroller,orDMAcontroller.AchannelprogramisasequenceofI/Oinstructionsexecutedbytheinput/outputchannelprocessorintheIBMSystem/360andsubsequentarchitectures.OS:Multiprogramming/timesharing,spoolingSpooling-usediskasaverylargebufferforinput/outputdevicesOsesDevelopedMULTICS(fatherofallmodernOSes)UNIX(SystemV,BSD)POSIX(byIEEE)MINIX(byTanenbaum)Linux(originatedbyLinusTorvalds,inspiredbyMINIX)MultiprogrammedBatchSystemsSeveraljobsarekeptinmainmemoryatthesametime,andtheCPUismultiplexedamongthem.MultiprogrammingincreasesCPUultilizationbyorganizingjobssuchthatCPUalwayshasonetoexecute.作業(yè)狀態(tài)轉(zhuǎn)換示意圖后備狀態(tài)提交狀態(tài)CPUP1P2P3運行I/O作業(yè)調(diào)度進程調(diào)度完成狀態(tài)外存盤交換區(qū)外存就緒外存阻塞中級調(diào)度OSFeatures
NeededforMultiprogrammingI/Oroutinesuppliedbythesystem.Memorymanagement–thesystemmustallocatethememorytoseveraljobs.CPUscheduling–thesystemmustchooseamongseveraljobsreadytorun.Allocationofdevices.
JobMonitorI/OJobAJobBSchedulingTypeI/ODiskI/OSimple/Multiprogramming
BatchSystem(1)ImproveCPUutilization7%--100%(intheory)(2)ImprovememoryandI/Odevicesutilization(3)IncreasesystemthroughputAdvantagesofMultiprogrammingCharacteristicsofMultiprogrammedBatchSystems:多道性、無序性、調(diào)度性(兩級)Question兩個/兩個以上的作業(yè)同時入主存處于宏觀運行狀態(tài)共享所有系統(tǒng)資源Canyoutellmetheconceptof“Multiprogramming”?AFamousRemark!"Thereisnoreasonanyonewouldwantacomputerintheirhome."--KenOlson,president,chairmanandfounderofDigitalEquipmentCorp.,1977TourthGeneration1980–PresentpersonalcomputersweredevelopedafterLSI(LargeScaleIntegration)circuitswereinvented.FirstMicrocomputer:Intel8080CPU+attached8-inchfloppydiskFirstdiskbasedOS:CP/M(ControlProgramforMicrocomputers)Programminglanguages:C/C++,Java,……OS:DOS,Windows,MacOS,Linux……AFamousRemark!"Wedon'tseeWindowsasalong-termgraphicalinterfaceforthemasses."--ALotusSoftwareDevelopmentofficial,whiledemonstratinganewDOSversion,1989HistoryofOperatingSystems?BillGatessuggestedIBMthattheyshouldlookatCP/M(byGaryKildall)Thebiggestmistakeofall:Kindallrefusedtosignanon-disclosureagreementIBMwentbacktoBillGatesandsignedacontractwithhimtowriteanOSfortheirnewhomecomputerMS-DOSwasbasedonQDOS,the"QuickandDirtyOperatingSystem"writtenbyTimPatersonofSeattleComputerProductsQDOSwasbasedonGaryKildall'sCP/MMicrosoftboughttherightstoQDOSfor$50,000HistoryofOperatingSystemsòEarlyMS-DOSwasveryprimitivebutlaterversionsincludedadvancedfeaturestakenfromUNIXTheearlyOSformicrocomputerswerebasedonuserstypingincommandsfromthekeyboardDouglasEngelbartfromSRIinventedtheGraphicalUserInterface(GUI)withwindows,icons,menus,andmouse.HistoryofOperatingSystemsóSteveJobssawthevalueofGUIinaPCanddevelopedtheApplecomputerwithGUI(AppleMacintosh)inhisgarage.Heisalsotheco-founderofPixarwhichhascreatedverysuccessfulanimatedfilms:ToyStory;ABug'sLife;ToyStory2;FindingNemo;Monsters.HistoryofOperatingSystems?MicrosoftdevelopedaGUI-basedsystemcalledWindowswhichoriginallyranontopofMS-DOSWindows95and98wererealGUIbasedoperatingsystemsstillbasedon16bitIntelassemblylanguageWindowsNTfamilyWindows2000,WindowsMeWindowsXPWindowsVistaWindowsNeptune:aversionofMicrosoftWindowsthatwasdotoarriveatthesametimeaswindows2000,butwasneverreleased.Chapter1:IntroductionWhatisanOperatingSystem?
HistoryofOperatingSystemsTheOperatingSystemZooTheOperatingSystemZooMainframeoperatingsystemsRoom-sizecomputersHighI/OcapacityOffers:Batchprocessing(nointeraction,suchaslargereports)Transactionprocessing(largenumberofsmallrequests)Timesharing(multipleuserssittinginfrontofclients)TheOperatingSystemZooServeroperatingsystemsOfferserviceslikeprint,file,orwebUNIX,Windows2000,LinuxMultiprocessoroperatingsystemsParallelcomputingPersonalcomputeroperatingsystemsSingleuserwithagoodGUI,suchasWindows98,Windows2000,MacintoshOS,LinuxTheOperatingSystemZooReal-timeoperatingsystemsE.g.industrialprocesscontrolsystemswhereeachjobmustbecompletedinthespecifiedtime.Hardreal-time(nuclearreactorcontrolsystems)orsoft-realtimesystems(e.gmultimediasystems)dependingontheacceptanceofmissingdeadlinesEmbeddedoperatingsystemsReal-timesystemswithsomeresourceconstraintslikememory,CPU,power.SmartcardoperatingsystemsExtremelyprimitiveOSrunningoncreditcard-sizeddeviceswithaCPU.CPUMemJob1Job2JobnUser1User2UsernTime-SharingSystemsTime-SharingSystems(Cont.)TheCPUismultiplexed多路amongseveraljobsthatarekeptinmemoryandondisk(theCPUisallocatedtoajobonlyifthejobisinmemory).Ajobissinandoutofmemorytothedisk.On-linecommunicationbetweentheuserandthesystemisprovided;whentheoperatingsystemfinishestheexecutionofonecommand,itseeksthenext“controlstatement”notfromacardreader,butratherfromtheuser’skeyboard.On-linesystemmustbeavailableforuserstoaccessdataandcode.Time-SharingSystems(Cont.)主機終端Real-TimeSystemsOftenusedasacontroldeviceinadedicatedapplicationsuchascontrollingscientificexperiments,medicalimagingsystems,industrialcontrolsystems,andsomedisplaysystems.Well-definedfixed-timeconstraints.
嚴格的時間限制Real-TimeSystems(Cont.)Real-TimeSystems(Cont.)Real-TimeSystems(Cont.)Real-TimeSystems(Cont.)Hardreal-timesystem
硬實時系統(tǒng)Secondarystoragelimitedorabsent,datastoredinshort-termmemory,orread-onlymemory(ROM)Conflictswithtime-sharingsystems,notsupportedbygeneral-purposeoperatingsystems.Softreal-timesystem軟實時系統(tǒng)LimitedutilityinindustrialcontrolorroboticsUsefulinapplications(multimedia,virtualreality)requiringadvancedoperating-systemfeatures.Personal-ComputerSystemsPersonalcomputers
–computersystemdedicatedtoasingleuser.I/Odevices
–keyboards,mice,displayscreens,smallprinters.Userconvenienceandresponsiveness.Canadopttechnologydevelopedforlargeroperatingsystem,oftenindividualshavesoleuseofcomputeranddonotneedadvancedCPUutilizationofprotectionfeatures.
可采用大型操作系統(tǒng)研發(fā)的技術(shù),個人獨占計算機不需要高級CPU使用的保護技術(shù)MigrationofOperating-SystemConceptsandFeaturesParallelSystemsMultiprocessorsystemswithmorethanoneCPUinclosecommunication.Tightlycoupledsystem緊耦合系統(tǒng)
–processorssharememoryandaclock;communicationusuallytakesplacethroughthesharedmemory.Advantagesofparallelsystem:Increasedthroughput吞吐量EconomicalIncreasedreliabilitygracefuldegradation故障時性能降低不大fail-softsystems軟失效系統(tǒng)ParallelSystems(Cont.)Sym
溫馨提示
- 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)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 石河子大學(xué)《語言程序設(shè)計》2021-2022學(xué)年期末試卷
- 石河子大學(xué)《雙碳概論》2023-2024學(xué)年第一學(xué)期期末試卷
- 石河子大學(xué)《工程項目管理》2022-2023學(xué)年第一學(xué)期期末試卷
- 石河子大學(xué)《材料力學(xué)》2023-2024學(xué)年第一學(xué)期期末試卷
- 九年級數(shù)學(xué)專題總復(fù)習(xí)(含答案)
- 沈陽理工大學(xué)《力學(xué)》2021-2022學(xué)年第一學(xué)期期末試卷
- 沈陽理工大學(xué)《機電傳動控制》2022-2023學(xué)年期末試卷
- 四史2023-2024-2學(xué)期學(xué)習(xí)通超星期末考試答案章節(jié)答案2024年
- 沈陽理工大學(xué)《動態(tài)網(wǎng)絡(luò)廣告》2022-2023學(xué)年期末試卷
- 關(guān)于合同法的專著
- Access數(shù)據(jù)庫課程標(biāo)準
- 幼兒園中班語言:《兩只蚊子吹牛皮》 課件
- 臨時用電漏電保護器運行檢測記錄表
- 頭痛的國際分類(第三版)中文
- 音樂ppt課件《小小的船》
- 幼兒園教學(xué)課件語言教育《雪地里的小畫家》
- 結(jié)構(gòu)化面試經(jīng)典100題及答案
- ESG引領(lǐng)下的西部城市再出發(fā)-新型城市競爭力策略研究白皮書
- 小學(xué)生班干部競選自我介紹PPT模板公開課一等獎市賽課獲獎?wù)n件
- 萬科物業(yè)崗位說明書2
- 音樂教學(xué)說課
評論
0/150
提交評論