保护和安全英文.docx
- 文档编号:4918764
- 上传时间:2022-12-11
- 格式:DOCX
- 页数:6
- 大小:20.25KB
保护和安全英文.docx
《保护和安全英文.docx》由会员分享,可在线阅读,更多相关《保护和安全英文.docx(6页珍藏版)》请在冰豆网上搜索。
保护和安全英文
OperatingSystemOrganization
ThischapteristhefirsttofocusonOSconceptsandinternaldesigns.TheOScreatesamyriadofabstractcomponentsusedbyapplicationprogrammers.Italsoprovidesameansforcorrdinatingtheoperationofthosecomponents,muchlikeaconductorcorrdinatesmusiciansinanorchestra.WebeginbyintroducingthebasicfunctionsrequiredofanyOS:
devicemanagement,processandresourcemanagement,memorymanagement,filemanagement,andfunctionalorganization.Next,wewilladdressgeneralimplementationmethodologies:
performanceandtrustedsoftware.Softwaremodularizationissusesareintroducedinthischapter,andarediscussedinmoredetailinChapter19.ThischapterconcludeswithadescriptionofthegeneralorganizationofUNIXkernelsandtheWindowsNTkernel.
BASICFUNCTIONS
TherearetwobasicresponsibilitiesoftheOS(seeFigure3.1):
⏹Createanabstractmachineenvironmentwithmultiple,autonomousabstractcomponents.Manyofthecomponentscanbeinuseconcurrently.Forexample,theOSusesmultiprogrammingtocreateanabstractmachineforeachprocess.
⏹Coordinatetheuseofthecomponentsaccordingtothepoliciesofthemachine’sadministrator.Forexample,theschedulerdecideswhenandwhichdifferentprocessesshouldbeallocatedtheprocesspor.
ThecreationpartoftheOSprovidesthespectrumofabstraction(suchasprocesses,threads,andresources)thatprogrammersuse,andthecoordinationpartmanagestheirconcurrentusesothatthecommunityofprocessesworksinharmony.
◆FIGURE3.1PurposeofanOS
PartofanOScreatesasetofabstractionsthatwillbeusedbyapplicationprogrammerstheseabstractionsincludeprocesses,threads,andfiles.InamultiprogrammingOS,multipleprocessescompetefortheuseoftheabstractresources,sotheOScorrdinatesthewaythattheseprocessesusetheabstractresources.
ThereisnocompleteagreementabouttheexactsetoffunctionsrequiredforanOS.Instead,eachOSprovidesasetdeterminedbyengineeringandmarketingchoices.OurgoalistolearnthegeneralprinciplesbehindOSfunctions,andthentoputthoseprinciplestoworkinOS-specificLaboratoryRxercises.Overtheyears,OSfunctionshavebeencharacterizedassatisfyingoneofthefollowingbasicrequirements:
Devicemanagement
Process,thread,andresourcemanagement
Memorymanagement
Filemanagement
Wewillusethesegeneralcharacterizationsasaframeworkforconsideringdetailedrequirements,designissues,architectures,andimplementation.Let’sfirstconsiderageneraldescriptionofeachofthesecomponentsofanOS.
DEVICEMANAGEMENT
TheOSmanagestheallocation,isolation,andsharingofthedevicesaccordingtopolicieschosenbythedesignerorsystemadminstrator.Evenoperationsystemsthatdonotsupportmultiprogrammingincorporatedevicemanagrment.Mostoperatingsystemstreatalldevicessuchasdisks,tapes,terminals,andprintersinthesamegeneralmanner,buttheyprovidespecialmanagementapproachesfortheprocessorandmemory.Devicemanagementreferstothewaythegenericdevicesarehandled.
Therearedevice-dependentanddevice-independentpartsofadevicemanager(seeFigure3.2).Thedependentparts,calleddevicedrivers,implementtheaspectsofdevicemanagementthatareuniquetoeachdevicetype.Forexample,adevicedriverforakeyboardisconstructedexplicitlytosensekeystrokesfromakeyboarddeviceasthecorrespondingkeysarepressed.Adevicemanagerforadisplayscreenisconstructedtowritecharactersorgraphicstoabideodisplay.
◆FIGURE3.2DeviceManagement
Thedevicemanageriscomposedofadevice-independentpartandacollectionofdevice-dependentparts,oneforeachtypeofdevice.Thedevice-dependentpartsexportservicestothedeviceindependentpart,whichprovidesaunifiedinterfaceforallthedifferentdevicetypes.
Theindependentpartofthedevicemanagerdfinesageneralsoftwareenvironmentinwhichadevice-dependentdrivercanexecute.Forexample,theindependentpartofthedevicemanager.Mostofthefunctionalityisimplementedinthecollectionofdevicedrivers.
Bypartitioningthedesignintodependentandindependentcomponecnts,thetaskofaddingadevicetoacomputerisgreatlysimplified.First,theOSdesignerdecideswhichaspectsofdevicemanagementaredevice-dependentandwhichpartscanbeindependentofalldevices.Theindependentpartsaretheimplementedidthebaseoperationsystem(theywillworkwithalldevices).Thedependentpartsareimplementedinthedriverforeachdevicetype.Thismeansthattheimdependentpartofthedevicemanagerhassystemcallstoreadand/orwriteanydevice.Aprinterdevicedrivercontainsallthesoftwarethatisspecifictoaparticulartypeofprinter(suchasaPostscript).SincetheindependentpartsaregenericforalldevicesandarebulitintotheOS,thedesignercanadddevicedriverstotheOSwheneveradeviceisaddedtothecamputer.
DevicemanagementisanimportantbutrelativelysimplepartoftheoverallOSdesign.Chapter4introducesdevicebehavior(fromasystemprogrammer’sperspective)aspartofthecomputerorganizationdiscussion.Chapter5addressesdevicemanagementindetail.
PROCESS,THREAD,ANDRESOURCEMANAGEMENT
Processesandthreadsarethebasicunitsofcomputationdefinedbyprogrammers,and(abstract)resourcesaretheelementsofthecomputingevironmentneededbyaprocesssothatitsthreadscanexecute.ThispartoftheOSimplementsallpartsoftheabstractmachinethatcreatetheabstractionsofprocesses,threads,andresources(seeFigure3.3).ThispartoftheOSiscompletelyresponsibleformanagingthehardwareprocessorresourceandvariousabstractresourcessuchasmessages.Itsharestheresponsibilityofmanagingthehardwareprimarymemorywiththememorymanager.
◆FIGURE3.3Process,Thread,andResourceManagement
Theprocess,thread,andresourcemanagerisresponsiblefortheadministrationoftheprocessorandvariousabstractresources.Itcooperateswiththememorymanagertoadministertheprimarymemory.
Processmanagement,threadmanagement,andresourcemanagementcouldbesepatatedintotheirownlogicalunits,butmostoperatingsystemscombinethemintoasinglemodule,sincetogethertheydefinetheessentialpartsoftheabstractmachineevironment.Inthisbook,thispartoftheOSissimpleyreferredtoasthe“processmanager”ratherthanthemoreproper(andlonger)name“process,thread,andresourcemanager.”
InChapter2,theUNIXprocessmodelwasdescribedasoneexampleofhowanOScandefineacomputationalenvironment.AUNIX-styleOSprovidesasetofprocessmanagementfacilitiesforcreating,destroying,blocking,andrunningaprocess.Chapter2alsodesribedthemoremodernthread-basedapproachinwhichthecomputationalelementisdividedintoastaticprocesspartandadynamicthreadpart.Theprocessmanagerforthread-basedsystemsismorecomplexthanoneforprocess-basedsystemssinceitmustmanageprocessesandthreadsasseparateentities.
Theresourcemanagerallocatesresourcestoprocesseswhentheyarerequestedbyathread,andkeepstrackofresourceswhenathreadfinishesusingthem.Logically,adesignercouldseparateresourcemanagementfunctionalityfromprocess/threadmanagement.However,changesisstatustoaresourceareusuallyrelatedtoachangeinstatusofaprocess,soOSdesignerstendtotalkaboutresourcemanagementsasifitwereapartofprocessmanagement.
Theprocessmanagerallowsmultipleusers(orprocessesandthreads)tosharethemachinebyprovidingmultipleexecutioncontextsandschedulingtheprocessorsothateachthreadreceievesanequitablefractionoftheavailabletime.Primaryconsiderationsoftheprocessmanagerarehowitwillenforceisolationofresourceaccessamongtheprocesses(accordingtosomepolicy)andhowitwillallowtheprocessestocircumventtheisolationmechanismwhenthepolicycallsfortheprocessestosharearesource.Chapters6through10describetheissuesrelatedtodesigningaprocessmanager.
MEMORYMANAGEMENT
Thememorymanagercooperateswhittheprocessmanagertoadministertheallocationanduseoftheprimary(alsocalledtheexecutableormain)memoryresource---seeFigure3.4Everyprocessrequestsandusesmemoryaccordingtoitsprogramdefinition.Thememorymanagerallocatesmemorytocompetingprocessesaccordingtoaspecifiedpolicyandenforcesresourceisolation.Astrategythatallowssharingismorecomplextomanagethanonewithnosharing,Hence,thememorymanagerincorporatesmechanismstoallowblockstobesharedinthepresenceoftheisolationmechanism.
◆FIGURE3.4MemoryManagement
Thememorymanagercooperateswiththeprocessmanagertoadministertheprimarymemory.IftheOSsupportsvirtualmemory,thenthatpartofthememorymanagercooperateswiththedeviceand/prthefilemanagerstomanagethememoryandpaginddevices.
Modernmemorymanagersprovidevirtualmemoryextensionssothattheabstractmachine’sprimarymemoryappearstobelargerthanthephysicalmachine’smemory.Thisisaccomplishedbyintegratingthecomputer’sprimarymemoryandthememoryfromitsstoragedevices,allowingprocessestorefernceinformationstoredonastoragedeviceasifitwerestoredintheprimarymemory.Virtualmemoryrequirementsdifferfromconventionalmemorymanagementrequirements.Thisisbecausethesystemismanaginganabstractresource---thevirtualmemoryspace---whichmustbemanagedbycontrollingthewaytheprimarymemoryandthestoragedevicesareusedtogether.Chapters11and12discussmemorymanagementapproaches,issues,anddesigns.
Modernmenorymanagersalseprovideameansforathreadononemachinetoaccessands
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 保护 安全 英文