您好,欢迎访问三七文档
Chapter2:Operating-SystemStructures沈卓炜h@dzwshen@seu.edu.cn四牌楼校区文正楼南205,83790819-802九龙湖校区计算机楼316Chapter2:Operating-SystemStructuresOperatingSystemServicesUserOperatingSystemInterfaceUserOperatingSystemInterfaceSystemCallsTypesofSystemCallsSystemProgramsSystemProgramsOperatingSystemDesignandImplementationOperatingSystemStructureVirtualMachinesVirtualMachinesOperatingSystemGenerationSoutheastUniversity2.2SystemBootChapter3:Operating-SystemStructures(6thEdition)Structures(6Edition)SystemComponentsSystemComponentsOperatingSystemServicesSystemCallsSystemProgramsSystemProgramsSystemStructureVirtualMachinesSystemDesignandImplementationSystemDesignandImplementationSystemGenerationSoutheastUniversity2.3OperatingSystemConceptsCommonSystemComponentsCooSysteCopoetsProcessManagementgMainMemoryManagementFilMtFileManagementI/OSystemManagementygSecondary-StorageManagementNetworkingProtectionSystemProtectionSystemCommand-InterpreterSystemSoutheastUniversity2.4OperatingSystemConceptsProcessManagementocessaageetAprocessisaprograminexecution.fTheoperatingsystemisresponsibleforthefollowingactivitiesinconnectionwithgprocessmanagement.ProcesscreationanddeletionProcesscreationanddeletion.processsuspensionandresumption.PiifhifProvisionofmechanismsfor:9processsynchronization9processcommunication9DeadlockhandlingSoutheastUniversity2.5OperatingSystemConceptsMain-MemoryManagementaeoyaageetMemoryisalargearrayofwordsorygybytes,eachwithitsownaddress.ItisarepositoryofquicklyaccessibleisarepositoryofquicklyaccessibledatasharedbytheCPUandI/Odevicesdevices.Mainmemoryisavolatilestoragedevice.Itlosesitscontentsinthecaseofsystemfailure.caseofsystemfailure.SoutheastUniversity2.6OperatingSystemConceptsMain-MemoryManagement(Cont.)yg()Theoperatingsystemisresponsibleforpgypthefollowingactivitiesinconnectionswithmemorymanagement:withmemorymanagement:Keeptrackofwhichpartsofmemoryarecurrentlybeingusedandbywhomcurrentlybeingusedandbywhom.Decidewhichprocessestoloadwhenbilblmemoryspacebecomesavailable.Allocateanddeallocatememoryspaceasneeded.SoutheastUniversity2.7OperatingSystemConceptsFileManagementeaageetTherearedifferenttpesofphsicalmediatoTherearedifferenttypesofphysicalmediatostoreinformation.EachofthemhasitsowncharacteristicsandphysicalorganizationOperatingSystemprovidesauniformlogicalOperatingSystemprovidesauniformlogicalviewofinformationstorage,i.e.,file.AfililltifltdiftiAfileisacollectionofrelatedinformationdefinedbyitscreator.Commonly,filesrepresentprograms(bothsourceandobjectforms)anddata.SoutheastUniversity2.8OperatingSystemConceptsforms)anddata.FileManagement(Cont.)eaageet(Cot)TheoperatingsstemisresponsiblefortheTheoperatingsystemisresponsibleforthefollowingactivitiesinconnectionswithfilemanagement:Filecreationanddeletion.Directorycreationanddeletion.SupportofprimitivesformanipulatingfilesandSupportofprimitivesformanipulatingfilesanddirectories.MifiltdtMappingfilesontosecondarystorage.Filebackuponstable(nonvolatile)storageSoutheastUniversity2.9OperatingSystemConceptsmedia.I/OSystemManagement/OSysteaageetTheI/OsbsstemconsistsofTheI/Osubsystemconsistsof:Abuffer-cachingsystemAgeneraldevice-driverinterfaceDriversforspecifichardwaredevicesDriversforspecifichardwaredevicesSoutheastUniversity2.10OperatingSystemConceptsSecondary-StorageManagementSecodayStoageaageetSincemainmemory(primarystorage)isvolatileandtoosmalltoaccommodatealldataandprogramspermanently,thepgpy,computersystemmustprovidesecondarystoragetobackupmainmemorystoragetobackupmainmemory.Mostmoderncomputersystemsusedisksastheprincipleon-linestoragemedium,forbothprogramsanddata.pgSoutheastUniversity2.11OperatingSystemConceptsSecondary-StorageManagement(Ct)(Cont.)Theoperatingsystemisresponsibleforthefollowingactivitiesinconnectionwithdiskmanagement:gFreespacemanagementStorageallocationStorageallocationDiskschedulingSoutheastUniversity2.12OperatingSystemConceptsNetworking(DistributedSystems)etog(stbutedSystes)AdistribtedsstemisacollectionAdistributedsystemisacollectionprocessorsthatdonotsharememoryoraclock.Eachprocessorhasitsownlocalmemory.yTheprocessorsinthesystemareconnectedthroughacommunicationnetworkthroughacommunicationnetwork.Communicationtakesplaceusingaprotocol.SoutheastUniversity2.13OperatingSystemConceptsNetworking(DistributedSystems)(Ct)(Cont.)AdistribtedsstemproidesseraccesstoAdistributedsystemprovidesuseraccesstovarioussystemresources.Accesstoasharedresourceallows:Computationspeed-upComputationspeed-upIncreaseddataavailabilityEnhancedreliabilitySoutheastUniversity2.14OperatingSystemConceptsProtectionSystemotectoSysteProtectionreferstoamechanismforProtectionreferstoamechanismforcontrollingaccessbyprograms,processes,oruserstobothsystemanduserresources.Theprotectionmechanismmust:Theprotectionmechanismmust:distinguishbetweenauthorizedandunauthorizedusageusage.specifythecontrolstobeimposedandmeansforftenforcement.SoutheastUniversity2.15OperatingSystemConceptsCommand-InterpreterSystemCoadtepeteSys
本文标题:操作系统原理2
链接地址:https://www.777doc.com/doc-5961763 .html