资源描述:
《TP311.11 The Art of Concurrency (汉译:并发的艺术) May 2009》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、TheArtofConcurrencyClayBreshearsBeijing•Cambridge•Farnham•Köln•Sebastopol•Taipei•TokyoTheArtofConcurrencybyClayBreshearsCopyright©2009ClayBreshears.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Sebastopol,CA95472.O’Reillybooksmaybepurch
2、asedforeducational,business,orsalespromotionaluse.Onlineeditionsarealsoavailableformosttitles(http://safari.oreilly.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:800-998-9938orcorporate@oreilly.com.Editor:MikeLoukidesIndexer:EllenTroutmanZaigProductionEditor:SarahSchneider
3、CoverDesigner:KarenMontgomeryCopyeditor:AmyThomsonInteriorDesigner:DavidFutatoProofreader:SarahSchneiderIllustrator:RobertRomanoPrintingHistory:May2009:FirstEdition.O’ReillyandtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.TheArtofConcurrency,theimageofwheat-harvestingcombines,andrelatedt
4、radedressaretrademarksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.wasawareofatrademarkclaim,thedesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhas
5、beentakeninthepreparationofthisbook,thepublisherandauthorassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcontainedherein.ISBN:978-0-596-52153-0[V]1241201585Tomyparents,foralltheirlove,guidance,andsupport.CONTENTSPREFACEvii1WANTTOGOFASTER?RAISEYOURHANDSIFYOUW
6、ANTTOGOFASTER!1SomeQuestionsYouMayHave2FourStepsofaThreadingMethodology7BackgroundofParallelAlgorithms12Shared-MemoryProgrammingVersusDistributed-MemoryProgramming15ThisBook’sApproachtoConcurrentProgramming192CONCURRENTORNOTCONCURRENT?21DesignModelsforConcurrentAlgorithms22What’sNotParallel423PROVIN
7、GCORRECTNESSANDMEASURINGPERFORMANCE49VerificationofParallelAlgorithms50Example:TheCriticalSectionProblem53PerformanceMetrics(HowAmIDoing?)66ReviewoftheEvolutionforSupportingParallelisminHardware714EIG