欢迎来到天天文库
浏览记录
ID:52081680
大小:2.66 MB
页数:105页
时间:2020-03-31
《《并行程序设计导论》第四章PPT.ppt》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Copyright©2010,ElsevierInc.AllrightsReservedChapter4SharedMemoryProgrammingwithPthreadsAnIntroductiontoParallelProgrammingPeterPachecoEvaluationonly.CreatedwithAspose.Slidesfor.NET3.5ClientProfile5.2.0.0.Copyright2004-2011AsposePtyLtd.Copyright©2010,ElsevierInc
2、.AllrightsReservedRoadmapProblemsprogrammingsharedmemorysystems.Controllingaccesstoacriticalsection.Threadsynchronization.ProgrammingwithPOSIXthreads.Mutexes.Producer-consumersynchronizationandsemaphores.Barriersandconditionvariables.Read-writelocks.Threadsafet
3、y.#ChapterSubtitleEvaluationonly.CreatedwithAspose.Slidesfor.NET3.5ClientProfile5.2.0.0.Copyright2004-2011AsposePtyLtd.ASharedMemorySystemCopyright©2010,ElsevierInc.AllrightsReservedEvaluationonly.CreatedwithAspose.Slidesfor.NET3.5ClientProfile5.2.0.0.Copyright
4、2004-2011AsposePtyLtd.ProcessesandThreadsAprocessisaninstanceofarunning(orsuspended)program.Threadsareanalogoustoa“light-weight”process.Inasharedmemoryprogramasingleprocessmayhavemultiplethreadsofcontrol.Copyright©2010,ElsevierInc.AllrightsReservedEvaluationonl
5、y.CreatedwithAspose.Slidesfor.NET3.5ClientProfile5.2.0.0.Copyright2004-2011AsposePtyLtd.POSIX®ThreadsAlsoknownasPthreads.AstandardforUnix-likeoperatingsystems.AlibrarythatcanbelinkedwithCprograms.Specifiesanapplicationprogramminginterface(API)formulti-threadedp
6、rogramming.Copyright©2010,ElsevierInc.AllrightsReservedEvaluationonly.CreatedwithAspose.Slidesfor.NET3.5ClientProfile5.2.0.0.Copyright2004-2011AsposePtyLtd.CaveatThePthreadsAPIisonlyavailableonPOSIXRsystems—Linux,MacOSX,Solaris,HPUX,…Copyright©2010,ElsevierInc.
7、AllrightsReservedEvaluationonly.CreatedwithAspose.Slidesfor.NET3.5ClientProfile5.2.0.0.Copyright2004-2011AsposePtyLtd.HelloWorld!(1)Copyright©2010,ElsevierInc.AllrightsReserveddeclaresthevariousPthreadsfunctions,constants,types,etc.Evaluationonly.CreatedwithAsp
8、ose.Slidesfor.NET3.5ClientProfile5.2.0.0.Copyright2004-2011AsposePtyLtd.HelloWorld!(2)Copyright©2010,ElsevierInc.AllrightsReservedEvaluationonly.CreatedwithAspose.Slidesfor.
此文档下载收益归作者所有