版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
ComputerEnglishChapter5OperatingSystem1.ComputerEnglishChapter5OpKeypoints:
FunctionandstructureofOperatingSystem
Difficultpoints:
Resourceallocationandrelatedfunctions
Userinterfacefunctions2.Keypoints:
FunctionandRequirements:了解操作系统是如何实现资源分配和用户接口功能的。通过学习操作系统功能的演化,认识操作系统在实现过程中采用的基本概念与技术,了解操作系统设计中的概念。认识操作系统的结构,了解当前常见操作系统的特点掌握被动语态的翻译技巧。3.Requirements:了解操作系统是如何实现资源分配和用NewWords&Expressions:allocationn.分配,安置 interfacen.界面,接口bindingn.捆绑,绑定
mutualinterference相互干扰entrustv.委托 criterian.标准constraintn.约束,强制,局促 partitionvt.分区apriori预先,事前 perceivev.感知,感到,认识到suboptimaladj.未达最佳标准的
preemptionn.抢占sequentialadj.顺序的,串行的 concurrentadj.并发的,并行的exclusiveuse专用 de-allocatevt.释放schedulingn.调度 salientadj.重要的,显著的5.1OSFunction
4.NewWords&Expressions:5.1OSOSfunctionscanbeclassifiedintoResourceallocationandrelatedfunctionsUserinterfacefunctions.Theresourceallocationfunctionimplementsresourcesharingbytheusersofacomputersystem.Basically,itperformsbindingofasetofresourceswitharequestingprogram,thatis,itassociatesresourceswithaprogram.Therelatedfunctionsimplementprotectionofuserssharingasetofresourcesagainstmutualinterference.操作系统的功能可分为:1.资源分配及相关功能。
2.用户接口功能资源分配功能负责实现计算机系统的用户共享资源。它主要将资源和提出需求的程序绑定在一起,即使资源和程序相关联。与之相关的一些功能实现不同用户在共享资源时的保护,以免发生相互干扰。5.1OSFunction
5.OSfunctionscanbeclassifiedTheuserinterfacefunctionfacilitatescreationanduseofappropriatecomputationalstructuresbyauser.Thisfunctiontypicallyinvolvestheuseofacommandlanguageoramenu.用户接口功能帮助用户创立并使用适当的计算结构,这一功能通常涉及命令语言或菜单的应用。5.1OSFunction
6.TheuserinterfacefunctionfaTheresourceallocationfunctionallocatesresourcesforusebyauser'scomputation.ResourcescanbedividedintosystemprovidedresourceslikeCPUs,memoryareasandIOdevices,oruser-createdresourceslikefileswhichareentrustedtotheOS.资源分配功能分配资源供用户计算使用。资源可分为系统提供的资源(如CPU、存储器区域及I/O设备群)和用户创建的资源(如由操作系统管理的文件等)。5.1.1Resourceallocationandrelatedfunctions7.TheresourceallocationfunctiResourceallocationcriteriadependonwhetheraresourceisasystemresourceorauser-createdresource.Allocationofsystemresourcesisdrivenbyconsiderationsofefficiencyofresourceutilization.Allocationofuser-createdresourcesisbasedonasetofconstraintsspecifiedbyitscreatorandtypicallyembodiesthenotionofaccessprivileges.资源分配的标准根据资源的分类确定,系统资源的分配要考虑资源利用的效率,而用户创立资源的分配则基于该资源的创立者所设定的特种限制,比如访问权限。5.1.1Resourceallocationandrelatedfunctions8.ResourceallocationcriteriadTwopopularstrategiesforresourceallocationare:PartitioningofresourcesAllocationfromapool资源分配通常采取以下两种策略;
1.资源分区。
2.从资源池中分配。5.1.1Resourceallocationandrelatedfunctions9.TwopopularstrategiesforresIntheresourcepartitioningapproach,theOSdecidesaprioriwhatresourcesshouldbeallocatedtoausercomputation.Thisapproachiscalledstaticallocationbecausetheallocationismadebeforetheexecutionofaprogramstarts.Staticresourceallocationissimpletoimplement,however,itcouldleadtosuboptimalutilizationbecausetheallocationismadeonthebasisofperceivedneedsofaprogram,ratherthanitsactualneeds.在资源分区方式中,操作系统预先决定把哪些资源分配给某个用户计算使用,这种方法也称为静态分配,因为分配是在程序执行前进行的。静态资源分配易于实现,但由于它不是从程序的实际需要出发,而是根据程序预先提出的需求来做决定,所以容易导致系统利用率下降。5.1.1Resourceallocationandrelatedfunctions10.IntheresourcepartitioningaInthelatterapproach,theOSmaintainsacommonpoolofresourcesandallocatesfromthispoolonaneedbasis.Thus,OSconsidersallocationofaresourcewhenaprogramraisesarequestforaresource.Thisapproachiscalleddynamicallocationbecausetheallocationtakesplaceduringtheexecutionofaprogram.Dynamicresourceallocationcanleadtobetterutilizationofresourcesbecausetheallocationismadewhenaprogramrequestsaresource.在后一种分配方式中,操作系统维护一个公共资源池,并按照程序的需要对资源进行分配。这样,OS只在程序提出对一个资源的需求时才进行资源分配,这种方式也称为动态分配,因为分配是在程序执行的过程中进行的。动态存储分配的资源利用率较高,因为它是在程序需要资源时才进行分配。5.1.1Resourceallocationandrelatedfunctions11.Inthelatterapproach,theOSAnOScanusearesourcetableasthecentraldatastructureallocation.Thetablecontainsanentryforeachresourceunitinthesystem.Theentrycontainsthenameoraddressoftheresourceunitanditspresentstatus,i.e.whetheritisfreeorallocatedtosomeprogram.Whenaprogramraisesarequestforaresource,theresourcewouldbeallocatedtoitifitispresentlyfree.Ifmanyresourceunitsofaresourceclassexistinthesystem,aresourcerequestonlyindicatestheresourceclassandtheOSchecksifanyresourceunitofthatclassisavailableforallocation.操作系统可以利用资源表作为资源分配的中心数据结构。表中包含系统的每一资源单位项数据项中记录资源单位的名称或地址以及当前状态,即它是空闲的还是己经分配给某一程序。当程序对某一资源提出请求后,若该资源是空闲的,则它将被分配给那个程序。若系统中同一资源类中存在许多资源单位,程序的资源请求只指明要求哪类资源而由操作系统检查该类中是否有可用的资源单位可以分配。5.1.1Resourceallocationandrelatedfunctions12.AnOScanusearesourcetableInthepartitionedresourceallocationapproach,theOSdecidesontheresourcestobeallocatedtoaprogrambasedonthenumberofresourcesandthenumberofprogramsinthesystem.Forexample,anOSmaydecidethataprogramcanbeallocated1MBofmemory,2000diskblocksandamonitor.Suchacollectionofresourcesisreferredtoasapartition.Ineffect,asetofpartitionscanbepredefinedinthesystem.Theresourcetablecanhaveanentryforeachresourcepartition.Whenanewprogramistobestarted,anavailablepartitionisallocatedtoit.在资源分区分配中,操作系统依据系统中的资源数目和程序数目决定如何进行资源分配。例如,操作系统可能会决定一个程序可以使用1MB内存、20O0个磁盘块及1个监视器,这一系列资源可以作为一个分区。系统可以提前定义出一系列这样的区,资源表中为每一资源区保存相应的数据项。当新的程序开始时将分配给它一个可用的分区。5.1.1Resourceallocationandrelatedfunctions13.InthepartitionedresourcealResourcepreemptionTherearedifferentwaysinwhichresourcecanbesharedbyasetofprograms.Someoftheseare:SequentialsharingConcurrentsharing资源抢占资源被一系列程序分享可以有多种不同的方式,如:串行共享并行共亨5.1.1Resourceallocationandrelatedfunctions14.Resourcepreemption资源抢占5.1.1RInsequentialsharing,aresourceisallocatedforexclusiveusebyaprogram.Whentheresourceisde-allocated,itismarkedfreeintheresourcetable.Nowitcanbeallocatedtoanotherprogram.Inconcurrentsharing,twoormoreprogramscanconcurrentlyusethesameresource.Examplesofconcurrentsharingaredatafiles.Mostotherresourcescannotbesharedconcurrently.Unlessotherwisementioned,allthroughthistextresourcesareassumedtobeonlysequentiallyshareable.在串行共享中,一个资源只能分配给一个程序,当资源被释放后,它在资源表中被标记为“空闲”,这时它才能被分配给下一个程序。在并行共亨中,两个以上的程序可以同时使用同样的资源。并行共享的例子是数据文件,其他资源通常不能被并行共享。在本文中以后若无特殊说明,所有资源都被假设为只能串行共享。5.1.1Resourceallocationandrelatedfunctions15.Insequentialsharing,aresouWhenaresourceissequentiallyshareable,thesystemcande-allocatearesourcewhentheprogrammakesanexplicitrequestforde-allocation.Alternatively,itcande-allocatearesourcebyforce.Thisiscalledresourcepreemption,thatis,forcefulde-allocationofaresource.当资源可以串行共享时,系统可以在程序明确地提出释放分配的请求后,对资源进行释放。或者,系统也可强行释放资源,这称为资源抢占。5.1.1Resourceallocationandrelatedfunctions16.WhenaresourceissequentiallPreemptionofsystemresourcesisusedbytheOStoenforcefairnessintheirusebyprograms,ortorealizecertainsystemlevelgoals.Apreemptedprogramcannotexecuteunlessthepreemptedresourceunit,orsomeotherresourceunitthesameresourceclass,isallocatedtoitonceagain.TheshortertermpreemptionisusedpreemptionoftheCPU,andthefulltermresourcepreemptionisusedforpreemptionofotherresources.资源抢占是能指强行释放资源。操作系统依靠对系统资源的抢占确保程序对资源的平等利用,或实现一些系统级的目标。对于资源被抢占的程序来说,除非把被抢占的资源单位或同一资源类的其他资源单位重新分配给它,否则无法继续执行。我们称抢占CPU为抢占,而称抢占其他资源为资源抢占。5.1.1Resourceallocationandrelatedfunctions17.PreemptionofsystemresourcesCPUsharingTheCPUcanbesharedinasequentialmanneronly.Henceonlyoneprogramcanexecuteatanytime.Otherprogramsinthesystemhavetowaittheirturn.Itisoftenimportanttoprovidefairservicetoallprogramsinthesystem.HencepreemptionisusedtofreetheCPUsothatitcanbegiventoanotherprogram.DecidingwhichprogramshouldbegiventheCPUandforhowlongisacriticalfunction.ThisfunctioniscalledCPUScheduling,orsimplyscheduling.PartitioningisabadapproachforCPUSharing,allocationfromapoolistheobviousapproachtouse.CPU共享CPU只能串行共享,因此它一次只能执行一个程序,其他程序必须依次等待。通常情况下,系统会要求平等对待所有的程序,用抢占来释放CPU以执行其他程序。因此决定该执行哪个程序并执行多长时间是一个十分重要的功能,这一功能被称为CPU调度或简称调度。显然,资源分区不适用于CPU共享,同此,从资源池中分配成为惟一的选择。5.1.1Resourceallocationandrelatedfunctions18.CPUsharingCPU共享5.1.1ResourceMemorysharingLiketheCPU,thememoryalsocannotbesharedconcurrently.However,unliketheCPU,itsavailabilitycanbeincreasedbytreatingdifferentpartsofmemoryasdifferentresources.Boththepartitioningandthepool-basedallocationapproachescanbeusedtomanagethememoryresource.Memorypreemptioncanalsobeusedtoincreasetheavailabilityofmemorytoprograms.Specialtermsareusedfordifferentmemorypreemptiontechniques,hencetheterm“memorypreemption”israrelyusedinourdiscussions.存储器共享和CPU一样,存储器也不能并行共享。但与CPU不同的是,可以把存储器的不同部份看作不同的资源,因此可以增加它的可用性。资源分区和基于资源池的分配方式都适用于存储器资源管理。存储器抢占也可用于提高程序对存储器的可用性,但由于对不同的存储器抢占技术都有专用术语,故在本书很少使用“存储器抢占”的说法。5.1.1Resourceallocationandrelatedfunctions19.Memorysharing存储器共享5.1.1ResouThepurposeofauserinterfaceistoprovidefortheuseofOSresources,primarilytheCPU,forprocessingauser'scomputationalrequirements.OSuserinterfacestypicallyusecommandlanguages.Theuserusesacommandtosetupanappropriatecomputationalstructuretofulfillacomputationalrequirement.用户接口的目的是为用户提供使用操作系统资源(主要是CPU)的接口来完成用户的计算请求。操作系统用户接口一般使命令语言,用户通过命令建立合适的计算结构以满足计算要求。5.1.2Userinterfacerelatedfunctions
20.ThepurposeofauserinterfacAvarietyofcomputationalstructurescanbedefinedbyanOS.Asamplelistofcomputationalstructuresisasfollows:1.Asingleprogram2.Asequenceofsingleprograms3.Acollectionofprograms.不同的计算结构可由操作系统决定。计算结构举例如下:1.单一程序2.单一程序的序列3.程序集合5.1.2Userinterfacerelatedfunctions
21.AvarietyofcomputationalstrThesecomputationalstructureswillbedefinedanddescribedinlaterchapters;hereweonlypointoutafewsalientfeatures.Itisassumedthateachprogramisindividuallyinitiatedbytheuserthroughtheuserinterface.Thesingleprogramconsistsoftheexecutionofaprogramonagivensetofdata.Theuserinitiatesexecutionoftheprogramthroughacommand.Twokindsofprogramscanexistsequentialandconcurrent.Asequentialprogram,whichmatcheswiththeconventionalnotionofaprogram,isthesimplestcomputationalstructure.以上这些计算结构将在以后各章中定义和描述,此处只指出一些简单的特征。例如每个程序都是由用户通过用户接口分别进行初始化的,单一程序是由在给定的数据集上的一个程序执行组成的,用户通过命令启动程序。程序可以分为两种:顺序的和并发的。顺序程序符合传统的程序概念,是最简单的计算结构。5.1.2Userinterfacerelatedfunctions
22.ThesecomputationalstructuresInaconcurrentprogram,differentpartsoftheprogramcanexecuteconcurrently.Forthis,theOShastobeawaretheidentitiesofthedifferentpartswhichcanexecuteconcurrently.ThisfunctionistypicallynotservedbytheuserinterfaceoftheOS.Inthischapteritisassumedthateachprogramissequentialinnature.而在并发程序中,程序的不同部分可被同时执行。为此,操作系统需要了解这些可以同时执行的不同部分的实体,操作系统的用户接口通常不支持这一功能。在本章中,假设所有的程序都是顺序执行的。5.1.2Userinterfacerelatedfunctions
23.Inaconcurrentprogram,diffeInasequenceofprograms,eachprogramisinitiatedbytheuserindividually.However,theprogramsarenotindependentofeachother---executingofaprogramismeaningfulonlyifthepreviousprogramsinthesequenceexecutesuccessfully.However,sincetheprogramsareinitiatedindividually,theirinterfacewithoneanotherissetupexplicitlybytheuser.在一个程序序列中,每个程序是由用户单独启动的,但程序之间并非相互独立,只有当前一程序执行成功后,下一个程序的执行才有意义,但由于程序是独立启动的,它们之间相互的接口由用户明确设定。5.1.2Userinterfacerelatedfunctions
24.Inasequenceofprograms,eacNewWords&Expressions:reliabilityn.可靠性 auditv.审计,查核security-relatedadj.与安全相关的 intrusionn.入侵
5.2FreeBSDvs.Linuxvs.Windows2000>>25.NewWords&Expressions:5.2Fr5.2FreeBSDvs.Linuxvs.Windows2000ReliabilityFreeBSD(BerkeleySoftwareDistribution)isextremelyrobust.Therearenumeroustestimonialsofactiveserverswithuptimesmeasuredinyears.ThenewSoftUpdatesfilesystemoptimizesdiskI/Oforhighperformance,yetstillensuresreliabilityfortransactionbasedapplications,suchasdatabases.可靠性FreeBSD系统非常健壮,有众多的常年稳定运行的服务器可以证明这一点。新的软件升级使文件系统优化了磁盘I/O以获得更高的性能,同时也保证了像数据库这样的基于事务的应用软件更加稳定运行。26.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000Linuxiswellknownforitsreliability.Serversoftenstayupforyears.However,diskI/Oisnon-synchronousbydefault,whichislessreliablefortransactionbasedoperations,andcanproduceacorruptedfilesystemafterasystemcrashorpowerfailure.Butfortheaverageuser,LinuxisaverydependableOS.Linux系统也是以稳定而著称,安装Linux系统的服务器可以长年稳定工作。但是Linux系统的磁盘I/O是非同步的,这降低了基于事务的操作的稳定性,在系统出错或者电源失效的情况下会导致文件系统的错误,但是对一般的用户而言,Linux系统已经非常可靠了。27.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000AllWindowsusersarefamiliarwiththe"BlueScreenofDeath".PoorreliabilityisoneofthemajordrawbacksofWindows.SomeofthemajorissueshavebeenfixedinWindows2000,but"codebloat"hasintroducedmanymorereliabilityproblems.Windows2000usesalotofsystemresourcesanditisverydifficulttokeepthesystemupformorethanacoupleofmonthswithoutitrevertingtoacrawlasmemorygetscorruptedandfilesystemsfragmented.所有的Window用户都习惯了蓝屏错误,可靠性差是Windows系统的主要缺陷。Windows2000系统修正了部分主要缺陷,但是由于系统代码非常庞大,导致存在很多的稳定性隐患。Windows2000系统使用了大量的系统资源,而且系统很难持续运行几个月,原因是由于文件系统产生了大量的碎片和内存分配的混乱。28.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000PerformanceFreeBSDisthesystemofchoiceforhighperformancenetworkapplications.FreeBSDwilloutperformothersystemswhenrunningonequivalenthardware.ThelargestandbusiestpublicserverontheInternet,at/,usesFreeBSDtoservemorethan1.2TB/dayofdownloads.FreeBSDisusedbyYahoo!,QwestandmanyothersastheirmainserverOSbecauseofitsabilitytohandleheavynetworktrafficwithhighperformanceandrocksolidreliability.性能FreeBSD系统非常适用于高性能的网络应用,FreeBSD系统在同等硬件环境下要比其他的系统运行的好。Internet上最大和最忙的公众服务器都采用了FreeBSD系统,在/网站,采用FreeBSD系统支撑了每天1.2TB的下载量。该系统在Yahoo!,Qwest以及其他著名网站,都作为其主要服务器采用的操作系统,并且能够高效稳定的处理高负载的网络流量。29.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000Linuxperformswellformostapplications,howevertheperformanceisnotoptimalunderheavynetworkload.ThenetworkperformanceofLinuxis20-30%belowthecapacityofFreeBSDrunningonthesamehardware.Thesituationhasimprovedsomewhatrecentlyandthe2.4releaseoftheLinuxkernelwillintroduceanewvirtualmemorysystembasedonthesameconceptsastheFreeBSDVMsystem.Sincebothoperatingsystemsareopensource,beneficialtechnologiesaresharedandforthisreasontheperformanceofLinuxandFreeBSDisrapidlyconverging.Linux系统对大多数应用来说性能良好,但是在网络负载很重的情况下表现不佳。在同样的硬件环境下,Linux的网络性能要比FreeBSD系统低20-30%。Linux对此问题已有所改进,在2.4版本内核中,它将采用一种新的虚拟内存技术,这种技术类似于FreeBSDVM。由于Linux和FreeBSD都是开放源代码,因此好的技术可以在两种系统中共享,也正是由于此原因,两种系统在很多方面是相似的。30.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000Windowsisadequateforroutinedesktopapps,butitisunabletohandleheavynetworkloads.AfeworganizationstrytomakeitworkasanInternetserver.Forinstance,usesWindows-NT,ascanbeverifyedbytheerrormessagesthattheirwebserverproduces,suchasthisrecentexample:ErrorMessage:[Microsoft][ODBCSQLServerDriver][SQLServer]Can'tallocatespaceforobject'queryHistory'indatabase'web'becausethe'default'segmentisfull.Fortheirown"Hotmail"Internetservers,MicrosoftusedFreeBSDformanyyears.Windows系统可以满足日常的桌面应用,但是无法处理网络重负载。很少有机构尝试让它作为Internet服务器来运行,例如网站使用Windows-NT系统,但是WEB服务器经常产生如下的错误信息,错误消息:[Microsoft][ODBCSQLServerDriver][SQLServer]不能在数据库'web'中为对象'queryHistory'分配空间,因为'default'字段已满。)微软公司自己的Hotmail服务器使用FreeBSD系统已经很多年了。31.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000SecurityFreeBSDhasbeenthesubjectofamassiveauditingprojectforseveralyears.Allofthecriticalsystemcomponentshavebeencheckedandrecheckedforsecurity-relatederrors.Theentiresystemisopensourcesothesecurityofthesystemcanandhasbeenverifiedbythirdparties.AdefaultFreeBSDinstallationhasyettobeaffectedbyasingleCERT(Computeremergencyresponseteam)securityadvisoryin2000.安全性FreeBSD系统的安全性已经作为一个课题被大量的研究,所有的可能会导致问题的系统成分都被再三的检验以发现与安全相关的错误。由于整个系统是开放的,所以安全性可以被第三方所检验。FreeBSD的默认安装毫无疑问受CERT2000年的安全报告影响。32.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000FreeBSDalsohasthenotionofkernelsecuritylevels.Thesearemuchmorepowerfulthansimplerun-levelssincetheyallowtheadministratortocompletelydenyaccesstocertainoperatingsystemfunctionssuchasreading/dev/mem,changingfilesystemflags,orwritingtodiskswithoutmountingafilesystem.FreeBSDincludesaveryrobustpacketfilteringfirewallsystemandmanyintrusiondetectiontools.
FreeBSD系统内核分为不同的安全等级,这比单级运行的内核更强大,因为它允许超级用户完全拒绝一些系统操作,像读磁盘/内存,改变文件系统标志,在没有挂接文件系统时对磁盘进行写操作。FreeBSD系统包含了非常健壮的包过滤防火墙系统和许多非法入侵检测工具。
33.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000TheopensourcenatureofLinuxallowsanyonetoinspectthesecurityofthecodeandmakechanges,butinrealitytheLinuxcodebaseismodifiedtoorapidlybyinexperiencedprogrammers.ThereisnoformalcodereviewpolicyandforthisreasonLinuxhasbeensusceptibletonearlyeveryUnix-basedCERTadvisoryoftheyear.Linux系统的开放源代码特性允许任何人对代码的安全性进行检查和修改,但实际上,系统的核心代码被一些经验不足的程序员修改得太快了。由于没有正式的代码检查策略,Linux系统的安全性被几乎所有的基于Unix系统的CERT报告提及。However,Linuxdoesincludeaveryrobustpacketfilteringfirewallsystemandmanyintrusiondetectiontools.但是Linux系统也有很健壮的包过滤防火墙系统和许多非法入侵检测工具。34.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000Microsoftclaimsthattheirproductsaresecure.Buttheyoffernoguarantee,andtheirsoftwareisnotavailableforinspectionorpeerreview.SinceWindowsisclosedsourcethereisnowayforuserstofixordiagnoseanyofthesecuritycompromisesthatareregularlypublishedaboutMicrosoftsystems.
微软公司声称自己的产品是安全的,但是他们无法提供保证,并且他们的软件在进行测试时经常是不可用的。由于Windows系统不开放源代码,因此对于用户来说是无法对定期发布的微软系统的安全补丁进行诊断和修改。
35.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000DeviceDriversTheFreeBSDbootloadercanloadbinarydriversatboot-time.Thisallowsthird-partydrivermanufacturerstodistributebinary-onlydrivermodulesthatcanbeloadedintoanyFreeBSDsystem.Duetotheopen-sourcenatureofFreeBSD,itisveryeasytodevelopdevicedriversfornewhardware.Unfortunately,mostdevice-manufacturerswillonlyreleasebinariesforMicrosoftoperatingsystems.Thismeansthatitcantakeseveralmonthsafterahardwaredevicehashitthemarketuntiladevicedriverisavailable.设备驱动FreeBSD系统允许在自举的时候装载二进制驱动,它允许任何第三方的驱动生产商发布可以在FreeBSD系统上运行的驱动程序。由于FreeBSD系统是开放源代码的,因此开发新硬件的驱动程序是非常容易的,但是大多数的硬件厂商只提供对微软的操作系统的驱动,因此往往在新硬件上市数月之后才有对FreeBSD系统的驱动程序。36.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000TheLinuxcommunityintentionallymakesitdifficultforhardwaremanufacturerstoreleasebinary-onlydrivers.Thisismeanttoencouragehardwaremanufacturerstodevelopopen-sourcedevicedrivers.UnfortunatelymostvendorshavebeenunwillingtoreleasethesourcefortheirdriverssoitisverydifficultforLinuxuserstousevendorsupplieddriversatall.Linux团体刻意给那些提供二进制驱动版本的硬件制造商制造麻烦,也就是他们鼓励硬件制造商提供开放源代码的驱动,但是大多数的硬件厂商不愿意提供开放他们的驱动的源代码,因此对大多数Linux使用者来说根本无法使用这些驱动。37.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000Microsofthasexcellentrelationshipswithhardwarevendors.ThereareoftenconflictswhenusingadevicedriverondifferentversionsofMicrosoftWindows,butoverallWindowsusershaveexcellentaccesstothirdpartydevicedrivers.微软公司和硬件厂商保持着很好的关系,虽然不同的微软Windows版本之间的硬件驱动会存在一些冲突,但是所有的Windows用户都可以很好的使用第三方设备驱动。38.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000CommercialApplicationsThenumberofcommercialapplicationsforFreeBSDisgrowingrapidly,butisstillbelowwhatisavailableforWindows.Inadditiontonativeapplications,FreeBSDcanalsorunprogramscompiledforLinux,SCOUnix,andBSD/OS.商业应用针对FreeBSD系统的商业应用程序增长很快,但是相比Windows而言还是要差很多。除了自身的应用程序以外,FreeBSD可以运行针对Linux,SCOUnix,andBSD/OS等系统编译的程序。39.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000ManynewcommercialapplicationsareavailableforLinux,andmorearebeingdeveloped.Unfortunately,LinuxcanonlyrunbinariesthatarespecificallycompiledforLinux.ItisunabletorunprogramscompiledforFreeBSD,SCOUnix,orotherpopularoperatingsystems.
许多新的Linux系统商业程序已经可以使用,而更多的还正在开发中。但是,由于Linux系统只能运行针对Linux系统编译的程序,而为FreeBSD,SCOUnix和其他系统编译的程序就无法运行于Linux之上了。40.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000>>TherearethousandsofapplicationsavailableforWindows,farmorethanforanyotherOS.NearlyallcommercialdesktopapplicationsrunonWindows,andmanyofthemareonlyavailableonWindows.IfyouhaveanimportantapplicationthatonlyrunsonWindows,thenyoumayhavenochoicebuttorunMicrosoftWindows.
Windows系统有成千上万的应用程序,比其他所有的操作系统都要多,几乎所有的商业应用都运行在Windows平台之上,而且大多数都只能运行在Windows平台上。如果你的重要的应用软件只能运行在Windows平台,你就不得不使用Windows系统了。
41.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000DevelopmentenvironmentFreeBSDincludesanextensivecollectionofdevelopmenttools.YougetacompleteC/C++developmentsystem(editor,compiler,debugger,profiler,etc.)andpowerfulUnixdevelopmenttoolsforJava,HTTP,Perl,Python,Tcl/Tk,Awk,Sed,etc.Allofthesearefree,andareincludedinthebasicFreeBSDinstallation.Allcomewithfullsourcecode.开发环境FreeBSD系统包括完整的开发环境,你可以得到完整的C/C++开发环境(编辑器、编译器、调试器、模拟器等)和强大的针对Java,HTTP,Perl,Python,Tcl/Tk,Awk,Sed等的Unix开发工具,所有这些都是免费的,而且在最基本的FreeBSD安装包中都有,并提供了源代码。42.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000LinuxincludesallthesamedevelopmenttoolsasFreeBSD,withcompilersandinterpretersforeverycommonprogramminglanguage,alltheGNUprograms,includingthepowerfulGNUC/C++Compiler,Emacseditor,andGDBdebugger.UnfortunatelyduetotheverysplinterednatureofLinux,applicationsthatyoucompileononesystem(RedHat7)maynotworkonanotherLinuxsystem(Slackware).
Linux包含了和FreeBSD相同的开发工具,为所有的通用程序设计语言提供编译器和解释器,包括GNUC/C++编译器,Emacs编辑器,和GDB调试器。但是,由于Linux的原始版本非常多,因此在某个系统下(如RedHat7)编译的程序可能在其他系统下(如Slackware)无法运行。43.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000VeryfewdevelopmenttoolsareincludedwithWindows2000.Mostneedtobepurchasedseparately,andarerarelycompatiblewitheachother.
Windows2000提供很少的开发工具,大部分需要另外购买,而且很少相互兼容。
44.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000SupportFreeBSDcanbedownloadedfromtheInternetforFREE.OritcanbepurchasedonafourCDROMset,alongwithseveralgigabytesofapplications,for$40.Allnecessarydocumentationisincluded.Supportisavailableforfreeorforverylowcost.Thereisnouserlicensing,soyoucanquicklybringadditionalcomputersonline.ThisalladdsuptoaverylowtotalcostofOwnership.
支持FreeBSD可以在Internet上自由下载,或者是购买4张CD盘,其中包含了几个GB的应用程序,售价40美元,所有必须的文档都包含在内。技术支持是免费的或者是非常便宜,而且不存在用户许可证,因此你可以在多台计算机上安装并迅速投入应用,这些对用户来说代价非常小。Linux也是自由软件,一些公司以很低的价格提供了商业版本,应用程序和文档也是免费的或者非常廉价,没有用户限制,因此Linux可以被你随心所欲的安装在多台计算机上。45.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000LinuxisFREE.Severalcompaniesoffercommercialaggregationsataverylowcost.ApplicationsandDocumentationisavailableforlittleornocost.Therearenolicensingrestrictions,soLinuxcanbeinstalledonasmanysystemsasyoulikefornoadditionalcost.Linux'stotalcostofownershipisverylow.
Linux也是自由软件,一些公司以很低的价格提供了商业版本,应用程序和文档也是免费的或者非常廉价,没有用户限制,因此Linux可以被你随心所欲的安装在多台计算机上。
46.5.2FreeBSDvs.Linuxvs.Wind5.2FreeBSDvs.Linuxvs.Windows2000TheservereditionofWindows2000costsnearly$700.Evenbasicapplicationscostextra.UsersoftenspendmanythousandsofdollarsforprogramsthatareincludedforfreewithLinuxorFreeBSD.Documentationisexpensive,andverylittleon-linedocumentationisprovided.Alicenseisrequiredforeverycomputer,whichmeansdelaysandadministrativeoverhead.TheinitiallearningcurveforsimpleadministrationtasksissmallerthanwithUnix,butitalsorequiresalotmoreworktokeepthesystemrunningwithanysignificantworkload.
<TheEnd>Windows200的服务器版本的价格将近700美元,而一些基本应用程序都需要另外收费。用户通常要花费几千美元购买一些程序软件,这些程序软件在Linux或者FreeBSD系统中是不收费的。文档非常昂贵,而系统只提供了少量的在线文档。每台计算机都需要授权证书,也就是说会导致延误和增加额外的管理。对于最初掌握简单管理任务的过程,使用Windows2000要比Unix花费的时间少,但是需要增加大量的工作用于保持系统稳定运行。
47.5.2Fr
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 制造业生产经理制造过程KPI考核表
- 小学主题班会课件-文明校园故事分享
- 水利工程运行维护与安全管理指南
- 结果健康堡垒阳光心态小学主题班会课件
- 收到客户关于合同终止条款的解释函3篇
- 2026年项目启动会场地安排确认函7篇范文
- 2026中国智能家居行业发展现状分析及技术创新与投资潜力研究报告
- 2026中国污水处理技术升级与市场机会研究报告
- 关于新品推广预算变动的审议函件(3篇)范文
- 2026中国智能清洁机器人市场运营现状研究及行业技术发展趋势展望报告
- 工艺纪律检查方案
- 江苏盐城东台市2026年专职网格员招聘考试试卷-含答案解析
- 汽车维修管理制度大全
- 信息系统运维项目投标方案模板
- 2026年《关于用好乡镇(街道)履行职责事项清单的具体措施》宣导课件
- 2026中国功能性食品原料科学认证与消费者认知调研
- 2026年初级注册安全工程师《安全生产专业实务(其他安全)》真题试卷(附答案解析)
- 胆南星临床应用现状
- 原材料采购价格监督制度
- 方言词汇调查条目表
- 燃气工程档案管理方案
评论
0/150
提交评论