期刊文献+

共享内存并行编程最优同步方法的研究 被引量:3

Research of the Most Optimal Synchronization Method in Shared-memory Parallel Programming
下载PDF
导出
摘要 共享内存并行编程是并行编程开发与研究的标准之一,为了保证程序运行的准确性和线程执行的高效率,对共享内存同步机制的研究具有重要意义。互斥锁与事件同步是Open MP标准中的混合同步机制,而斯坦福大学的Baek等人扩展Open MP提出的面向事务存储的Open TM应用编程接口,事务内存同步是其突出特点。通过研究发现混合同步存在部分互斥锁同步会严重消耗系统空间资源、线程资源利用率有待提高等问题,而事务同步忽视不可恢复行为的影响。因此,提出一种基于共享内存的最优同步方法,即优化后的混合同步和事务内存同步的结合体,实验论证此优化方法的可行性,程序运行更加高效。 Shared-memory parallel programming is one standard of the parallel development and research,in order to ensure the accuracy of program and high efficiency thread of execution,the research of synchronization mechanisms has important significance. Hybrid synchronization composed of mutex lock and events is the synchronization mechanisms in Open MP standard. And transactional memory is the salient features of the transaction-oriented storage Open TM application programming interface,expanded Open MP interface proposed by Beak of Stanford University. There are some problems in these two synchronization mechanisms,for example some mutex synchronization consumes system storage resource serious and the utilization of thread needs to be improved in hybrid synchronization. And transaction synchronization ignore unrecoverable behavior. Therefore,an optimal synchronization method is presented based on shared memory,the combination method of hybrid synchronization and transaction memory mechanisms. The feasibility of this optimization method is demonstrated by experiments,and the program run more efficiently.
出处 《科学技术与工程》 北大核心 2015年第8期99-102,110,共5页 Science Technology and Engineering
基金 国家高技术研究发展计划(2012AA010904) 四川省教育厅项目(13ZA0296)资助
关键词 混合同步 事务内存 同步优化 OpenTM mixed synchronous transactional memory simultaneous optimization OpenTM
  • 相关文献

参考文献11

  • 1张平,赵荣彩,李清宝.基于相关性的同步优化算法[J].计算机工程,2005,31(17):68-70. 被引量:5
  • 2Baek W,Minh C C,Trautmann M,et al. The OpenTM transactionalapplication programming interface. Parallel Architecture and Compila-tion Techniques, 16th International Conference on, IEEE, 2007 :376-387.
  • 3吴俊杰,杨学军,刘光辉,唐玉华.面向OpenMP和OpenTM应用的并行数据重用理论[J].软件学报,2010,21(12):3011-3028. 被引量:3
  • 4付明.低级并行代码中几种同步机制的验证.合肥:中国科学技术大学,2009.
  • 5李勇.基于软件事务内存的并行程序验证.合肥:中国科学技术大学,2011.
  • 6贾建斌,黄春,赵克佳.事务存储并行程序编程接口研究[J].计算机工程与科学,2010,32(11):136-140. 被引量:1
  • 7戴晨,陈鹏,杨冬蕾,张为华.面向多核的并行编程和优化研究[J].计算机应用与软件,2013,30(12):198-202. 被引量:11
  • 8王堃.基于多核的并行程序设计及优化.南京:南京大学,2012.
  • 9McKenney P E,Michael M M,Triplett J,et al. Why the grass maynot be greener on the other side : A comparison of locking vs. transac-tional memory. ACM SIGOPS Operating Systems Review, 2010 ; 44(3); 93-101.
  • 10Nakano J, Montesinos P, Gharachorloo K, et al. ReViveI/0: effi-cient handling of I/O in highly-available rollback-recovery servers.High-Performance Computer Architecture. The Twelfth InternationalSymposium on, 2006:200-211.

二级参考文献58

  • 1陈永健,舒继武,李建江,王鼎兴.OpenMP指导语句全局嵌套类型的静态分析及应用(英文)[J].软件学报,2005,16(2):194-204. 被引量:3
  • 2Herlihy M, Eliot J, Moss B. Transactional Memory.. Architectural Support For Lock Free Data Structures[C]//Proc of the 20th Annual Int'l Symp on Computer Architecture, 1993:289-300.
  • 3Shavit N, Touitou D. Software Transactional Memory[C]// Proc of the 14th ACM Symp on Principles of Distributed Computing, 1995:204-213.
  • 4Lie S. Hardware Support for Unbounded Transactional Memory:[Masters Thesis]iDa. Massachusetts Institute of Teeh nology, 9004.
  • 5sVirendra D. Marathe J, Spear F, et al. Capabilities and Limitations of Library Based Software Transactional Memory in C ++[C]//Proc of Annual ACM Symp on Principles of Distributed Computing, Brief Announcements-Track A, 2007: 336-337.
  • 6Baek W, Minh C C, Trautmann M, et al. The OpenTM Transactional Application Programming Interface[C]//Proc of the Int' l Conf on Parallel Architectures and Compilation Techniques, 2007:376-387.
  • 7Milovanovic M, Ferrer R, Unsal O, et al. Transactional Memory and OpenMP[C]//Proc of the 3rd Int'l Workshop on OpenMP: A Practical Programming Model for the MultiCore Era, 2007 :37-53.
  • 8University of Rochester Department of Computer Science. Rochester Software Transactional Memory[EB/OL]. [2009- 01-05] http://www, es. rochester, edu/research/synchronization/rstm/.
  • 9Intel Inc. Intel C++ STM Compiler, Prototype Edition 2. 0. Language Extensions and Users' Guide[EB/OL]. [2009- 01-05]. http://software, intel, com/en-us/artieles/intel-cstm-compiter-prototype-edition-20.
  • 10IBM Corp. IBM XL C/C++ for Transactional Memory for AIX , V0. 9 Language Extensions and User's Guide[EB/ OL]. [2009-01-05]. http://www, alphaworks, ibm. com/ tech/ xlcstm/.

共引文献16

同被引文献29

引证文献3

二级引证文献8

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部