版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
PrinciplesofOperatingSystem
操作系統(tǒng)原理AboutThisCourse課程基本情況課程類別:學(xué)科專業(yè)課必修課學(xué)時(shí)學(xué)分:總學(xué)時(shí)64學(xué)時(shí)實(shí)驗(yàn)8學(xué)時(shí)4學(xué)分先修課程:數(shù)據(jù)結(jié)構(gòu)、程序設(shè)計(jì)語言課程內(nèi)容主要講授操作系統(tǒng)基本原理,即教材第1章至第13章成績評定方法期末考試成績占70%,平時(shí)成績占30%平時(shí)成績包括:作業(yè)、實(shí)驗(yàn)、課堂、考勤Textbook&ReferencesAbrahamSilberschatz.AppliedOperatingSystemConcepts.HigherEducationPress,2001,5湯子瀛.計(jì)算機(jī)操作系統(tǒng).西安:西北電子科技大學(xué)出版社,1999,5胡志剛.計(jì)算機(jī)操作系統(tǒng).長沙:中南大學(xué)出版社,2005,8張堯?qū)W.計(jì)算機(jī)操作系統(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.控制用戶程序運(yùn)行和I/O設(shè)備的操作Kernel–theoneprogramrunningatalltimes(allelsebeingapplicationprograms).全時(shí)運(yùn)行的一個(gè)程序OurTraditionalDefinitionAsetofprogramsthatcontrolandmanagecomputerhardwareandsoftware,andorganizecomputer'sworkflowsoastomakethecomputersystemconvenientforuserstousereasonablyandefficiently.控制和管理計(jì)算機(jī)軟硬件資源,合理組織計(jì)算機(jī)工作流程,方便用戶合理使用計(jì)算機(jī)的程序的集合。AbstractViewofSystemComponents
Virtualmachine
裸機(jī)在每增加一層軟件后,就成為一個(gè)功能更強(qiáng)的機(jī)器,通常將這個(gè)“新的功能更強(qiáng)的機(jī)器”稱為“虛擬機(jī)”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è)置一個(gè)操作員User1operatorReducesetuptimebybatchingsimilarjobs
批量處理同類作業(yè)減少了設(shè)置時(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運(yùn)行I/O作業(yè)調(diào)度進(jìn)程調(diào)度完成狀態(tài)外存盤交換區(qū)外存就緒外存阻塞中級(jí)調(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)度性(兩級(jí))Question兩個(gè)/兩個(gè)以上的作業(yè)同時(shí)入主存處于宏觀運(yùn)行狀態(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.)主機(jī)終端Real-TimeSystemsOftenusedasacontroldeviceinadedicatedapplicationsuchascontrollingscientificexperiments,medicalimagingsystems,industrialcontrolsystems,andsomedisplaysystems.Well-definedfixed-timeconstraints.
嚴(yán)格的時(shí)間限制Real-TimeSystems(Cont.)Real-TimeSystems(Cont.)Real-TimeSystems(Cont.)Real-TimeSystems(Cont.)Hardreal-timesystem
硬實(shí)時(shí)系統(tǒng)Secondarystoragelimitedorabsent,datastoredinshort-termmemory,orread-onlymemory(ROM)Conflictswithtime-sharingsystems,notsupportedbygeneral-purposeoperatingsystems.Softreal-timesystem軟實(shí)時(shí)系統(tǒng)LimitedutilityinindustrialcontrolorroboticsUsefulinapplications(multimedia,virtualreality)requiringadvancedoperating-systemfeatures.Personal-ComputerSystemsPersonalcomputers
–computersystemdedicatedtoasingleuser.I/Odevices
–keyboards,mice,displayscreens,smallprinters.Userconvenienceandresponsiveness.Canadopttechnologydevelopedforlargeroperatingsystem,oftenindividualshavesoleuseofcomputeranddonotneedadvancedCPUutilizationofprotectionfeatures.
可采用大型操作系統(tǒng)研發(fā)的技術(shù),個(gè)人獨(dú)占計(jì)算機(jī)不需要高級(jí)CPU使用的保護(hù)技術(shù)MigrationofOperating-SystemConceptsandFeaturesParallelSystemsMultiprocessorsystemswithmorethanoneCPUinclosecommunication.Tightlycoupledsystem緊耦合系統(tǒng)
–processorssharememoryandaclock;communicationusuallytakesplacethroughthesharedmemory.Advantagesofparallelsystem:Increasedthroughput吞吐量EconomicalIncreasedreliabilitygracefuldegradation故障時(shí)性能降低不大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)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年租賃代駕服務(wù)合同范本(含長途服務(wù)保障)3篇
- 2024試用銷售業(yè)務(wù)協(xié)議基本格式一
- 2025年度臨床試驗(yàn)合同中的臨床試驗(yàn)監(jiān)測與質(zhì)量保證措施2篇
- 2024年軟件開發(fā)優(yōu)先更新權(quán)協(xié)議3篇
- 2024裝修公積金貸款協(xié)議條款樣本版B版
- 2025年度大米加工企業(yè)技術(shù)改造投資合同樣本3篇
- 2024年高科技產(chǎn)業(yè)項(xiàng)目全額承包經(jīng)營合作協(xié)議3篇
- 2024年酒店大堂裝修項(xiàng)目施工協(xié)議版B版
- 2024煤炭居間經(jīng)紀(jì)業(yè)務(wù)合同模板6篇
- 2024年派遣員工保密協(xié)議
- 精神病健康教育知識(shí)宣傳
- 咸寧職業(yè)技術(shù)學(xué)院學(xué)生實(shí)習(xí)鑒定表
- 工程技術(shù)資料管理方案
- 三年級(jí)上冊語文第27課《一個(gè)粗瓷大碗》同步練習(xí)(含答案)
- 初中新人教版八年級(jí)下冊英語單詞表(按單元排序)附音標(biāo)及漢語意思excel版可編輯修改
- 河南省駐馬店市重點(diǎn)中學(xué)2023-2024學(xué)年九年級(jí)上學(xué)期12月月考語文試題(無答案)
- 咨詢服務(wù)協(xié)議書范本(完整版)
- 影像檢查診斷報(bào)告
- 蘭亭集序教學(xué)設(shè)計(jì)一等獎(jiǎng)(三篇)
- FMCW無線電高度表天線被部分遮擋下的影響分析及驗(yàn)證方法
- 高考專題復(fù)習(xí):《史記 孫子吳起列傳》分析
評論
0/150
提交評論