版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
UNIT8OperatingSystem
8-1TechnicalPart8-2ReadingMaterial
8-1TechnicalPart
8-1-1Definition
Anoperatingsystemisaprogramdesignedtorunotherprogramsonacomputer.Acomputer’soperatingsystemisitsmostimportantprogram.Itisconsideredthebackboneofacomputer,managingbothsoftwareandhardwareresources.Operatingsystemsareresponsibleforeverythingfromthecontrolandallocationofmemorytorecognizinginputfromexternaldevicesandtransmittingoutputtocomputerdisplays.Theyalsomanagefilesoncomputerharddrivesandcontrolperipherals,likeprintersandscanners.8-1-2Introductions
FunctionalitiesofOperatingSystem
Theoperatingsystemofalargecomputersystemhasevenmoreworktodo.Suchoperatingsystemsmonitordifferentprogramsandusers,makingsureeverythingrunssmoothly,withoutinterference,despitethefactthatnumerousdevicesandprogramsareusedsimultaneously.Anoperatingsystemalsohasavitalroletoplayinsecurity.Itsjobincludespreventingunauthorizedusersfromaccessingthecomputersystem.Todaymostoperatingsystemsperformthefollowingimportantfunctions:
1. ProcessManagement
Aprocessisaprograminexecution.Aprocessneedscertainresources,includingCPUtime,memory,files,andI/Odevices,toaccomplishitstask.OSresponsibilitiesforprocessmanagementinclude:processcreationanddeletion;processscheduling,suspension,andresumption;processsynchronization,inter-processcommunication.
2. MemoryManagement
MemoryisalargearrayofaddressablewordsorbytesoradatarepositorysharedbytheCPUandI/Odevices.OSresponsibilityformemorymanagementinclude:
Allocateanddeallocatememoryspaceasrequested;
Keeptrackofwhichpartsofmemoryarecurrentlybeingusedandbywhom;
Efficientutilizationwhenthememoryresourceisheavilycompeted.
3.FileManagement
Theoperatingsystemalsohandlestheorganisationandtrackingoffilesanddirectories(folders)savedorretrievedfromacomputerdisk.Thefilemanagementsystemallowstheusertoperformsuchtasksascreatingfilesanddirectories,renamingfiles,copingandmovingfiles,anddeletingfiles.Theoperatingsystemkeepstrackofwherefilesarelocatedontheharddrivethroughthetypeoffilesystem.ThetwomaintypesoffilesystemareFileAllocationtable(FAT)orNewTechnologyFilesystem(NTFS)
4. HardwareManagement
Operatingsystemsinterfacewithhardwaredriversthatmanagetheactualphysicalhardwaresuchasharddrives,modems,processors,memoryandprinters.Thehardwaredriversprovidealayerofabstractionsothattheoperatingsystemdoesnothavetoknowaboutaspecificdevice,butratherhowtocommunicatewithitsdriver.Thedrivertypicallyhastoplaybycertainrulesthattheoperatingsystemexpects,allowingdriversoftwareupdateswithoutdisruption.
5. UserInterfaceManagement
Theoperatingsystemalsomanagestheuserinterface,whethergraphicalortext-based.Thisfunctiondoesinvolvethehardwaremanagementcomponentmentionedabove,butonamoreadvancedlevel.Theuserinterfacemustrespondtotheuser’sdirectionsviamouse,keyboard,touchscreenorotherinputdevice.Thepartoftheoperatingsystemthatmanagesthisfunctionmusttranslatekeypresses,mouseclicksandotheruseractionsintotheappropriatecommandstotheotherpartsofthecomputer.
6. PriorityManagement
Theoperatingsystemmustprioritizeandmanagetheschedulingofthevariousapplicationsrunningonthecomputer.Forinstance,ifyouaredownloadingalargefile,butwanttoworkonadocumentwhileitdownloads,theoperatingsystemslicestheprocessoravailabilitytogiveprioritytoyourinputactionswhilemanagingthedownloadinthebackground.Thisissometimescalledpreemptivescheduling,asanythingthattheuserdoestakespriorityandpreemptsotherlessimportanttasks.Thisabilitytocarveupprocessortimegiveswhatisactuallyasingle-taskingOStheappearanceofamulti-taskingOS.
7. TaskManagement
Theoperatingsystemperformsbasiccomputertasks,suchasmanagingthevariousperipheraldevicessuchasthemouse,keyboardandprinters.Forexample,mostoperatingsystemsnowareplugandplaywhichmeansadevicesuchasaprinterwillautomaticallybedetectedandconfiguredwithoutanyuserintervention.ClassificationofOperatingSystem
Operatingsystemscanbeclassifiedasfollows:
1. Multiuser
Multiuseroperatingsystemsallowtwoormoreuserstorunprogramsatthesametime.Someoperatingsystemspermithundredsoreventhousandsofconcurrentusers.Theoperatingsystemsofmainframesandminicomputersaremultiusersystem.
2. Multiprocessing
Multiprocessingreferstoacomputersystemabilitytosupportmorethanoneprocessatthesametime.Multiprocessingoperatingsystemsenableseveralprogramstorunconcurrently.MVSandUNIXaretwoofthemostwidelyusedmultiprocessingsystems,buttherearemanyothers,includingOS/2forhighendPCs.
3. Multitasking
Multitaskingallowsmorethanoneprogramtorunconcurrently.Multitaskingistheabilitytoexecutemorethanonetaskatthesametime,ataskbeingaprogram.Thetermsmultitaskingandmultiprocessingareoftenusedinterchangeably,althoughmultiprocessingsometimesimpliesthatmorethanoneCPUisinvolved.
4. Multithreading
Multithreadingallowsdifferentpartsofasingleprogramtorunconcurrently.Multithreadingistheabilityofanoperatingsystemtoexecutedifferentpartsofaprogramcalledthreads,simultaneously.
5. Realtime
Realtimeoperatingsystemissystemsthatrespondtoinputimmediately.Thiscategoryincludesoperatingsystemsdesignedsubstantiallyforthepurposeofcontrollingandmonitoringexternalactivitieswithtimingconstraints.Theyareusedforsuchtasksasnavigation,inwhichthecomputermustreacttoasteadyflowofnewinformationwithoutinterruption.SeveralCommonlyUsedOperatingSystem
Operatingsystemsprovideasoftwareplatformontopofwhichotherprograms,calledapplicationprograms,canrun.ItisshowninFigure8-1.Theapplicationprogramsmustbewrittentorunontopofaparticularoperatingsystem.Yourchoiceofoperatingsystem,therefore,determinestoagreatextenttheapplicationsyoucanrun.ForPCs,themostpopularoperatingsystemsareDOS,OS/2,andWindows,butothersareavailable,suchasLinux.Figure8-1Positionofoperatingsystem
1. Windows
Windows,incomputerscience,isapersonalcomputeroperatingsystemsoldbyMicrosoftCorporationthatallowsuserstoentercommandswithapoint-and-clickdevice,suchasamouse,insteadofakeyboard.TheWindowsoperatingsystemprovidesuserswithaGraphicalUserInterface(GUI),whichallowsthemtomanipulatesmallpictures,calledicons,onthecomputerscreentoissuecommands.Windowsisthemostwidelyusedoperatingsystemintheworld.ItisanextensionofandreplacementforMicrosoft’sDiskOperatingSystem(MS-DOS).
TheWindowsGUIisdesignedtobeanatural,orintuitive,workenvironmentfortheuser.WithWindows,theusercanmoveacursoraroundonthecomputerscreenwithamouse.Bypointingthecursoraticonsandclickingbuttonsonthemouse,theusercanissuecommandstothecomputertoperformanaction,suchasstartingaprogram,accessingadatafile,orcopyingadatafile.Othercommandscanbereachedthroughpull-downorclick-onmenuitems.Thecomputerdisplaystheactiveareainwhichtheuserisworkingasawindowonthecomputerscreen.Thecurrentlyactivewindowmayoverlapwithotherpreviouslyactivewindowsthatremainopenonthescreen.ThistypeofGUIissaidtoincludeWIMPfeatures:windows,icons,menus,andpointingdevice(suchasamouse).
2. UNIX
UNIX,incomputerscience,isamultiuser,multitaskingoperatingsystemoriginallydevelopedbyKenThompsonandDennisRitchieatAT&TBellLaboratoriesin1969foruseonminicomputers(SeeFigure8-2).UNIXexistsinvariousformsandimplementations;amongtheseareversionsdevelopedattheUniversityofCaliforniaatBerkeley(knownasBSDreleases)
andversionsreleasedbyAT&T,themostrecentbeingAT&TSystemV.
UNIXisconsideredapowerfuloperatingsystemwhich,becauseitiswrittenintheClanguage,ismoreportable—lessmachine-specific—thanotheroperatingsystems.UNIXisavailableinseveralrelatedforms,includingAIX,aversionofUNIXadaptedbyIBM(torunonRISC-basedworkstations),A/UX(agraphicalversionfortheAppleMacintosh),andMach(arewrittenbutessentiallyUNIX-compatibleoperatingsystemfortheNeXTcomputer).
ItspopularityisdueinlargeparttothegrowthoftheinterconnectedcomputernetworkknownastheInternet,thesoftwareforwhichinitiallywasdesignedforcomputersthatranUNIX.VariationsofUNIXincludeSunOS(distributedbySUNMicrosystemsInc.),Xenix(distributedbyMicrosoftCorporation),andLinux.UNIXanditsclonessupportmultitaskingandmultipleusers.Itsfilesystemprovidesasimplemeansoforganizingdiskfilesandletsusersprotecttheirfilesfromotherusers.ThecommandsinUNIXarenotintuitive,however,andmasteringthesystemisdifficult.Figure8-2UnixSystemInterface
3. Linux
Linux(/5linəks/)isaUNIX-likecomputeroperatingsystemassembledunderthemodeloffreeandopensourcesoftwaredevelopmentanddistribution(SeeFigure8-3).ThedefiningcomponentofLinuxistheLinuxkernel,anoperatingsystemkernelfirstreleased5October1991byLinusTorvalds.
LinuxwasoriginallydevelopedasafreeoperatingsystemforIntelx86-basedpersonalcomputers.Ithassincebeenportedtomorecomputerhardwareplatformsthananyotheroperatingsystem.Itisaleadingoperatingsystemonserversandotherbigironsystemssuchasmainframecomputersandsupercomputers:morethan90%oftoday’s500fastestsupercomputersrunsomevariantofLinux,includingthe10fastest.Linuxalsorunsonembeddedsystems(deviceswheretheoperatingsystemistypicallybuiltintothefirmwareandhighlytailoredtothesystem)suchasmobilephones,tabletcomputers,networkrouters,televisionsandvideogameconsoles;theAndroidsysteminwideuseonmobiledevicesisbuiltontheLinuxkernel.Figure8-3GraphicallogininterfaceofRedFlagLinux
ThedevelopmentofLinuxisoneofthemostprominentexamplesoffreeandopensourcesoftwarecollaboration:theunderlyingsourcecodemaybeused,modified,anddistributed—commerciallyornon-commercially—byanyoneunderlicensessuchastheGNUGeneralPublicLicense.TypicallyLinuxispackagedinaformatknownasaLinuxdistributionfordesktopandserveruse.SomepopularmainstreamLinuxdistributionsincludeDebian(anditsderivativessuchasUbuntu),FedoraandopenSUSE.LinuxdistributionsincludetheLinuxkernel,supportingutilitiesandlibrariesandusuallyalargeamountofapplicationsoftwaretofulfillthedistribution’sintendeduse.
4. VxWorks
VxWorksisareal-timeoperatingsystem(RTOS)thatcanbeusedinembeddedsystems(SeeFigure8-4).VxWorkscanbecustomizedeasilyandcanrunonmostprocessorsdesignedfordistributedcomputing.VxWorksisusedtocontrolnetworkandcommunicationdevices,testandmeasurementequipment,computerperipherals,automotivesystems,avionics(aeronauticsandastronautics)equipmentanddiverseconsumerproducts.
VxWorkshassomesimilaritiestoUNIXandincludesashell,debuggingfunctions,memorymanagement,performancemonitoringandsupportformultiprocessing.TheOSincludesakernelforpreemptivemultitasking,interruptresponse,interprocesscommunicationandafilesystem.ProgramminginVxWorkscanbedifficultfornovicesbecausetheprogrammermustwritethecodeonanas-neededbasis.However,thefactthatthereisminimalcontenttosaveandrestoremeansthatVxWorksuseslessprocessingpowerthanUNIX,soitcanrunfaster.
VxWorksisatrademarkofWindRiverSystems,acompanyspecializinginsoftwareoptimizationandbasedinAlameda,California,USA.Figure8-4DevelopmenttoolinterfaceofVxWorks8-1-3ApplicationCaseorExample
Windows7OperatingSystem
Windows7isthecurrentreleaseofMicrosoftWindows,aseriesofoperatingsystemsproducedbyMicrosoftforuseonpersonalcomputers,includinghomeandbusinessdesktops,laptops,netbooks,tabletPCs,andmediacenterPCs.Windows7wasreleasedtomanufacturingonJuly22,2009,andreachedgeneralretailavailabilityworldwideonOctober22,2009,lessthanthreeyearsafterthereleaseofitspredecessor,WindowsVista.Windows7’sservercounterpart,WindowsServer2008R2,wasreleasedatthesametime.
UnlikeWindowsVista,whichintroducedalargenumberofnewfeatures,Windows7wasintendedtobeamorefocused,incrementalupgradetotheWindowsline,withthegoalofbeingcompatiblewithapplicationsandhardwarewithwhichWindowsVistawasalreadycompatible.PresentationsgivenbyMicrosoftin2008focusedonmulti-touchsupport,aredesignedWindowsshellwithanewtaskbar,referredtoastheSuperbar,ahomenetworkingsystemcalledHomeGroup,andperformanceimprovements.
SomestandardapplicationsthathavebeenincludedwithpriorreleasesofMicrosoftWindows,includingWindowsCalendar,WindowsMail,WindowsMovieMaker,andWindowsPhotoGallery,arenotincludedinWindows7;mostareinsteadofferedseparatelyatnochargeaspartoftheWindowsLiveEssentialssuite.
OnlyseveralfunctionsofWindows7areshownbelow.1. Windows7Taskbar
YoucandosomuchmorefromtheWindows7taskbar(SeeFigure8-5).Windows7’staskbarisgreatlyimprovedintwoways.First,youcanpinprogramstoitindefinitelyforeasyquicklaunch.Second,onacrowdeddesktopcoveredwithwindows,usingthenewAeroPeekfeature,youcanpreviewindividualwindowsfromgroupedtaskbarapplications,andevenclosedocumentsfromthethumbnailsthemselves.
Holdyourmouseoverthethumbnailtoseeanevenlargerviewofthefile.Youcanalsorearrangeandorganizebuttonsonthetaskbar,includingpinnedprogramsandrunningprogramsthataren’tpinned,sotheyappearintheorderyouprefer.Torearrangetheorderofbuttonsonthetaskbar,dragabuttonfromitscurrentpositiontoadifferentpositiononthetaskbar&asoftenasyoulike.Figure8-5Windows7Taskbar
2. ShowDesktop
Showdesktoponfarrightcorner,butyoudon’tneedtoclick,justputyourmouseoverit.Ifyouwanttokeepthedesktop&minimizethefiles,justclickit(SeeFigure8-6).Figure8-6Windows7ShowDesktop
3. StartMenu
InWindows7,youhavemuchmorecontrolovertheprogramsandfilesthatappearontheStartmenu(SeeFigure8-7).TheStartmenuisessentiallyablankslatethatyoucanorganizeandcustomizetosuityourpreferences.Findaprogramyouwanttoadd&rightmouseclick&chooseaddtostartmenu.ClickontheStartbuttononleftbottomcorner.Figure8-7Windows7StartMenu
TheStartMenuList(SeeFigure8-8)willappear&ifyouholdyourmouseovertheprogramyouwillseealistofrecentlyopenedfilesusedbythatprogramontheright.Thisalsoshowsthelocationthatfilewassavedto.Figure8-8Windows7StartMenuList
4. Shake
Shakeonewindowtomaketheothersdisappear.Youcaninstantlysnapyourwindowstosize,andclearthedesktopinonemotion.Aswidescreenmonitorsbecomemorecommon,easierside-by-sidewindowmanagementandWindows7hasitbuiltin.ThenewAeroShakefeatureletsyouclearthedesktopofallbackgroundwindowsbygrabbingthetopbaroftheactivewindowandmovingitbackandforthquickly.
5. Pin
Pinyourfavoriteprogramsrighttoyourtaskbar.PinningprogramstothetaskbarcomplementspinningprogramstotheStartMenu,likeinearlierversionsofWindows.Whenyoupinafavoriteprogramtothetaskbar,youcanalwaysseeitthereandeasilyaccessitwithasingleclick.Windows7alsoincludesJumpLists,sothatinadditiontolaunchingaprogramfromthetaskbar,youcannowlaunchfavoriteandrecentitemsfromthatprogram,justbyclickingthesamebutton(SeeFigure8-9).Youcanalsomovethesearoundtobeintheorderyouwant.Figure8-9Windows7Pin
6. JumpLists
JumpListsarelistsofrecentlyorfrequentlyopeneditems,suchasfiles,folders,tasks,orwebsites,organizedbytheprogramthatyouusetoopenthem(SeeFigure8-10).InadditiontobeingabletoopenrecentitemsusingaJumpList,youcanalsopinfavoriteitemstoaJumpListsoyoucanquicklygettotheitemsthatyouuseeveryday.
Onthetaskbar,JumpListsappearforprogramsthatyou’vepinnedtothetaskbarandprogramsthatarecurrentlyrunning.YoucanviewtheJumpListforaprogrambyright-clickingthetaskbarbutton,orbydraggingthebuttontowardthedesktop.YouopenitemsfromtheJumpListbyclickingonthem.Figure8-10Windows7JumpLists8-2ReadingMaterial
8-2-1Readingcomprehension
iPhoneOperatingSystem
iOS(previouslyiPhoneOS)isamobileoperatingsystemdevelopedanddistributedbyAppleInc.Originallyreleasedin2007fortheiPhoneandiPodTouch,ithasbeenextendedtosupportotherAppledevicessuchastheiPadandAppleTV.UnlikeMicrosoft’sWindowsCE(WindowsPhone)andGoogle’sAndroid,AppledoesnotlicenseiOSforinstallationonnon-Applehardware.AsofJune12,2012
(2012-06-12),Apple’sAppStorecontainedmorethan650,000iOSapplications,whichhavecollectivelybeendownloadedmorethan30
billiontimes.Ithada23%shareofthesmart-phoneoperatingsystemunitssoldinthefirstquarterof2012,behindonlyGoogle’sAndroid.InJune2012,itaccountedfor65%ofmobilewebdataconsumption(includinguseonboththeiPodTouchandtheiPad).Atthehalfof2012,therewere410milliondevicesactivated.TheuserinterfaceofiOSisbasedontheconceptofdirectmanipulation,usingmulti-touchgestures.Interfacecontrolelementsconsistofsliders,switches,andbuttons.Theresponsetouserinputisimmediateandprovidesafluidinterface.InteractionwiththeOSincludesgesturessuchasswipe,tap,pinch,andreversepinch,allofwhichhavespecificdefinitionswithinthecontextoftheiOSoperatingsystemanditsmulti-touchinterface.Internalaccelerometersareusedbysomeapplicationstorespondtoshakingthedevice(onecommonresultistheundocommanD.orrotatingitinthreedimensions(onecommonresultisswitchingfromportraittolandscapemode).iOSisderivedfromOSX,withwhichitsharestheDarwinfoundation,andisthereforeaUnixoperatingsystem.IniOS,therearefourabstractionlayers:theCoreOSlayer,theCoreServiceslayer,theMedialayer,andtheCocoaTouchlayer.Thecurrentversionoftheoperatingsystem(iOS5.1.1)dedicates1-1.5GBofthedevice’sflashmemoryforthesystempartition,usingroughly800MBofthatpartition(varyingbymodel)foriOSitself(SeeFigure8-11).Figure8-11iOS5ScreenshotTakenfromiPhoneTheoperatingsystemwasunveiledwiththeiPhoneattheMacworldConference&Expo,January9,2007,andreleasedinJuneofthatyear.Atfirst,Applemarketingliteraturedidnotspecifyaseparatenamefortheoperatingsystem,statingsimplythatthe“iPhonerunsOSX”.Initially,third-partyapplicationswerenotsupported.SteveJobsarguedthatdeveloperscouldbuildwebapplicationsthat“wouldbehavelikenativeappsontheiPhone”.OnOctober17,2007,AppleannouncedthatanativeSoftwareDevelopmentKit(SDK)wasunderdevelopmentandthattheyplannedtoputit“indevelopers’handsinFebruary”.OnMarch6,2008,Applereleasedthefirstbeta,alongwithanewnamefortheoperatingsystem:“iPhoneOS”.
ApplehadreleasedtheiPodtouch,whichhadmostofthenon-phonecapabilitiesoftheiPhone.ApplealsosoldmorethanonemillioniPhonesduringthe2007holidayseason.OnJanuary27,2010,AppleannouncedtheiPad,featuringalargerscreenthantheiPhoneandiPodtouch,anddesignedforwebbrowsing,mediaconsumption,andreadingiBooks.
InJune2010,ApplerebrandediPhoneOSas“iOS”.Thetrademark“IOS”hadbeenusedbyCiscoforoveradecadeforitsoperatingsystem,IOS,usedonitsrouters.Toavoidanypotentiallawsuit,Applelicensedthe“IOS”trademarkfromCisco.
Words&Expressions
licensevt.发放许可
smart-phone智能手机
activatevt.激活
gesturen.手势
directmanipulation直接操作
responseto对……响应interactionwith与……交互作用
immediateadj.直接的
fluidadj.流畅的
definitionsn.定义
multi-touchinterface多点触摸界面
accelerometersn.感应器dimensionsn.维度
abstractionn.抽象
currentversion当前版本
flashmemory闪存
partitionn.分区
trademarkn.(注册)商标8-2-2Exercises
I.Fillineachoftheblankswithoneofthewordsgiveninthefollowinglist,makingchangesifnecessary.
operatingsystem,pointingdevice,point-and-clickdevice,pull-down,activewindow,manipulate,cursor,workenvironment,icons
Windows,incomputerscience,isapersonalcomputer
soldbyMicrosoftCorporationthatallowsuserstoentercommandswitha
,suchasamouse,insteadofakeyboard.TheWindowsoperatingsystemprovidesuserswithag
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 广东省广州市黄埔区2023-2024学年七年级上学期期末生物试题(答案)
- 2024消防排烟工程合同模板
- 羽毛球杀球 说课稿-2023-2024学年高一上学期体育与健康人教版必修第一册
- 2024版雨伞采购合同示例
- 2024版小桥工程合同范本
- 2024版拆除工程分包合同
- 浙教版高中信息技术必修模块《信息技术基础》说课稿:4.2《数据的筛选》-网络环境与创新意识相结合的教学案例
- 2018年浙江高考语文、数学、英语答案解析
- 2024年继承财产预分协议:家族财富传承规划
- 2020年春学期XXX小学开学工作方案
- 配电房施工组织设计方案(土建部分)
- 链条功率选用
- 国家开放大学电大专科《英语教学法》2023-2024期末试题及答案(试卷代号:2145)
- 年产30万吨合成氨脱碳工段工艺设计
- 管桩水平承载力计算
- 塑胶产品成型周期公式及计算
- 事业单位领导班子考核测评表
- LM-10Y液晶系列全自动振动时效使用说明书
- 中国药科大学有机化学期末试卷A
- 义务教育优质均衡发展区创建工作“路线图”和“时间表”
- 初二年级组工作计划(春季)
评论
0/150
提交评论