文本描述
MasteringConcurrencyinGo TableofContents MasteringConcurrencyinGo Credits AbouttheAuthor AbouttheReviewers PacktPub Supportfiles,eBooks,discountoffers,andmore Whysubscribe? FreeaccessforPacktaccountholders Preface Whatthisbookcovers Whatyouneedforthisbook Whothisbookisfor Conventions Readerfeedback Customersupport Downloadingtheexamplecode Errata Piracy Questions 1.AnIntroductiontoConcurrencyinGo Introducinggoroutines Apatientgoroutine Implementingthedefercontrolmechanism UsingGo’sscheduler Usingsystemvariables Understandinggoroutinesversuscoroutines Implementingchannels Channel-basedsortingatthelettercapitalizationfactory Cleaningupourgoroutines Bufferedorunbufferedchannels Usingtheselectstatement Closuresandgoroutines Buildingawebspiderusinggoroutinesandchannels Summary 2.UnderstandingtheConcurrencyModel Understandingtheworkingofgoroutines Synchronousversusasynchronousgoroutines Designingthewebserverplan Visualizingconcurrency RSSinaction AnRSSreaderwithselfdiagnostics Imposingatimeout AlittlebitaboutCSP Thediningphilosophersproblem Goandtheactormodel Objectorientation DemonstratingsimplepolymorphisminGo Usingconcurrency Managingthreads Usingsyncandmutexestolockdata Summary 3.DevelopingaConcurrentStrategy Applyingefficiencyincomplexconcurrency Identifyingraceconditionswithracedetection Usingmutualexclusions Exploringtimeouts Importanceofconsistency Synchronizingourconcurrentoperations The