资源描述:
《ChrisLieb_Thesis》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、ConcurrentProgramminginEducation:TimeforaChangebyChristopherJLiebAThesisSubmittedtotheFacultyoftheWORCESTERPOLYTECHNICINSTITUTEinpartialfulfillmentoftherequirementsfortheDegreeofMasterofScienceinComputerScienceMay2011APPROVED:ProfessorGaryPollice,Maj
2、orAdvisorProfessorMichaHofri,ThesisReaderProfessorCraigWills,HeadofDepartmentAbstractWritingconcurrentprogramsusingsharedmemorycausesmanyprogrammersmuchtrou-ble,dueprimarilytounsafesemantics.Memorycorruption,raceconditions,deadlocks,andevenlivelocksa
3、retriviallyeasytointroduceintoaprogramandpainfultohuntdownduethenearlyinfinitepossibleinterleavingsofinstructionsbetweenthethreads.Undergraduatecurriculatraditionallyintroducestudentstotheideaofsharedmemorymultithreadinginasystemsprogrammingoroperati
4、ngsystemsclass,butrarelyexposethemtoanyalternatemodelsofconcurrentprogramming.Thisleavesthemwiththeideathatsharedmemoryistheonlywaytodoconcurrentprogramming.Afterstudentswereexposedtoalternatemodels,theycametopreferthemtothestan-dardsharedmemorymodel
5、.Thishappeneddespitetheirdistasteoftheprogramminglan-guagethatwasutilizedinperformingthestudy.ThestudentsalsoexpressedinterestinalternatemodelsofconcurrencybeingtaughtinthecomputersciencecurriculaatWPI.AcknowledgementsMyadvisor,GaryPollice,formakings
6、urethatIreadplentyofresearchpapersandformakingsurethatIgoteverythingdone.MaybesomedayI'lllearntowriteintheactivevoicenaturally.Myreader,MichaHofri,forvolunteeringtoreadmythesisandforgivingmegoodandtimelyfeedback.PaulKehrerandPeterSwire,forgivingsomeo
7、fyourtimetotestoutthepartsofmystudythatIwouldbegivingtosubjects.ThemistakesthatyouguysfoundI'msuresavedthestudy'ssubjectsuntoldamountsofgriefandconfusion.Prof.JeanineSkorinkooftheDepartmentofSocialScienceandPolicyStudies,forlettingmeusesomeofherlabsp
8、aceforconductingthestudy,givingmeusefuladviceaboutrunningstudies,andforlettingmeadvertisemystudytostudentsinherclasses.Also,I'dliketothank/apologizetosomeofherresearchassistantsandstudents,whomIhadtokickoutofthelabsoIcouldrunmystudy.Prof.JoesephBeck,