保护和安全英文文档格式.docx

上传人:b****6 文档编号:17872156 上传时间:2022-12-11 格式:DOCX 页数:6 大小:20.25KB
下载 相关 举报
保护和安全英文文档格式.docx_第1页
第1页 / 共6页
保护和安全英文文档格式.docx_第2页
第2页 / 共6页
保护和安全英文文档格式.docx_第3页
第3页 / 共6页
保护和安全英文文档格式.docx_第4页
第4页 / 共6页
保护和安全英文文档格式.docx_第5页
第5页 / 共6页
点击查看更多>>
下载资源
资源描述

保护和安全英文文档格式.docx

《保护和安全英文文档格式.docx》由会员分享,可在线阅读,更多相关《保护和安全英文文档格式.docx(6页珍藏版)》请在冰豆网上搜索。

保护和安全英文文档格式.docx

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

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高中教育 > 高考

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1