期刊文献+

一种含共享变量维持声明的并行程序语言 被引量:1

Parallel Programming Language with Shared Variable Holding Declaration
下载PDF
导出
摘要 现今的并行编程实践多采用锁来同步对共享资源的访问,编程难且易出错;新引入的原子区构造虽简化了编程,但支持其实现的软硬件技术尚不令人满意.本文就同步提出一种新的语言级抽象-共享变量维持声明,它允许程序员从局部于线程的观点声明当前线程对某共享变量s访问的维持需求,即声明当前线程在运行时从上次访问s到这次访问s期间不允许其他线程访问s.从而,程序员无须考虑该如何使用锁等具体机制来同步对共享变量的访问,也可以避免或解决原子区所面临的一些问题.本文给出了共享变量维持声明的语法和语义描述,讨论了由这种声明信息生成共享变量访问控制代码的方法. Nowadays the way to synchronously access the shared resources using locks in parallel programming is difficult to write and error-prone. The newly language construct of atomic section promises to make parallel programming easier, but the software and hardware technology to support atomic sections is not satisfied. This paper presents a new language abstract on synchronization mechanisms, i.e. holding declaration of shared variables. It allows programmers to declare the local holding requirement of some shared variable s in current thread, e.g. declaring that it is forbidden to access the shared variable s from other threads since the latest access to s in current thread. Therefore, programmers need not consider how to access shared variables with concrete synchronization mechanisms, such as using locks and so on, and can avoid or solve some problems confronted by atomic sections. In the paper, the syntax and the semantic description of the shared variable holding declaration are presented, and methods for generating the shared variable access control code from such declaration information are discussed.
出处 《小型微型计算机系统》 CSCD 北大核心 2011年第7期1387-1393,共7页 Journal of Chinese Computer Systems
基金 国家自然科学基金项目(9071802660928004)资助
关键词 并行程序语言 同步 共享变量维持 访问控制 parallel programming language synchronization shared memory holding access control
  • 相关文献

参考文献11

  • 1Vijay Saraswat. Report on the experimental language X10. Version 2.01 [ EB/OL]. http ://x10-lang. org/,Jan ,2010.
  • 2Jonathan Lee, Jens Palsberg. Featherweight X10: a core calculus for async-finish parallelism[ C]. In Proceedings of 15th ACM SIGP- LAN Symposium on Principles and Practice of Parallel Program- ruing (PPoPP'10), Bangalore, India,2010,25-36.
  • 3Cray Inc. Chapel language specification 0. 785 [ EB/OL]. http:// chapel. tray. eom/spec/speg-0.785. pdf, Apt,2010.
  • 4Eric Allen, David Chase, Joe Hallett,et al. The Fortress language specification[ EB/OL]. Version1. 0. Sun Microsystems, Inc. ,ht- tp://projecffortress. sun. com/Projects/Community/, Mar,2008.
  • 5Christopher J Rossbach, Owen S Hofmann, emmett witchel. Is transactional programming actually easier[ C]. In Proceedings of 15th ACM SIGPLAN Symposium on Principles and Practice of Par- allel Programming( PPoPP'10), Bangalore, India, 2010,47-56.
  • 6Larus J R, Rajwar R. Transactional memory synthesis lectures on computer architecture[ M]. Morgan & Claypool Publishers, Jan, 2007.
  • 7Calin Caseaval, Colin Blundell, Maged Michael, et al. Stefanie chiras and siddhartha chatterjee software transactional memory: why is it only a research toy[J]. Queue, 2008 6(5) :46-58.
  • 8Yuan Zhang, Joseph Bryant, Manzano Franc.o, et al. Atomic sec- tion: concept and implementation[ C]. In Proceedings of Mid-At- lantic Student Workshop on Programming Languages and Systems (MASPLAS'05), Newark, Delaware, USA, 2005,30.
  • 9Sigmund Cherem, Trishul Chilimbi, Sumit Gulwani. Inferring locks for atomic sections [ C ]. In Proceedings of ACM SIGPLAN 2008 Conference on Programming Language Design and Implementation, Tucson, Arizona,2008,304-315.
  • 10Zhang Yu, Wang Chen, Zhang Wei, et al. A parallel program- ruing language with resource holding declaration. University of Science and Technology of China: Technical Report[ R/OL]. ht- tp ://ssg. ustcsz. edu. cn/sites/default/files/intlang. pdf,2010.

同被引文献1

引证文献1

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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