首页 | 本学科首页   官方微博 | 高级检索  
     

基于面向方面和运行时反射技术的并行框架
引用本文:张杨,张冬雯,王一拙. 基于面向方面和运行时反射技术的并行框架[J]. 计算机应用, 2014, 34(11): 3096-3099. DOI: 10.11772/j.issn.1001-9081.2014.11.3096
作者姓名:张杨  张冬雯  王一拙
作者单位:1. 河北科技大学 信息科学与工程学院, 石家庄 0500002. 北京理工大学 计算机学院,北京 100081
基金项目:河北省自然科学基金资助项目
摘    要:针对使用并行库JOMP的程序在性能方面存在的不足,提出一个可以分离并行逻辑和功能逻辑的并行框架。该框架对程序中需要并行处理的部分进行标记,采用面向方面和运行时反射技术实现被标记部分的处理,其中面向方面技术用于实现并行逻辑的分离和编织,运行时反射技术用于获取运行时被标记部分的相关信息,以并行库(waxberry)的方式实现了该并行框架。使用基准测试程序JGF套件中的三个测试程序对并行库进行了测试,实验结果表明,应用该并行库的程序可以获得较好的性能。

关 键 词:并行编程  面向方面编程  反射  并行框架  并行库
收稿时间:2014-07-24
修稿时间:2014-08-06

Parallel framework based on aspect-oriented programming and run-time reflection
ZHANG Yang , ZHANG Dongwen , WANG Yizhuo. Parallel framework based on aspect-oriented programming and run-time reflection[J]. Journal of Computer Applications, 2014, 34(11): 3096-3099. DOI: 10.11772/j.issn.1001-9081.2014.11.3096
Authors:ZHANG Yang    ZHANG Dongwen    WANG Yizhuo
Affiliation:1. School of Information Science and Engineering, Hebei University of Science and Technology, Shijiazhuang Hebei 050000, China;
2. School of Computer, Beijing Institute of Technology, Beijing 100081, China
Abstract:JOMP that is the OpenMP-like implementation in Java needs to be optimized, so a parallel framework, which can separate parallel logic and logic function, was proposed.The parallel framework was implemented by a parallel library named waxberry, and the parts which need to be processed parallelly were annotated and executed by using Aspect-Oriented Programming (AOP) and run-time reflection. AOP was used to separate parallel parts with core ones, and to weave them together. Run-time reflection was used to obtain the related information during the parallel execution. The library waxberry was evaluated using Java Grande Forum (JGF) benchmarks on a quad-core processor. The experimental results show that the waxberry can obtain good performance.
Keywords:parallel programming  aspect-oriented programming  reflection  parallel framework  parallel library
本文献已被 CNKI 万方数据 等数据库收录!
点击此处可从《计算机应用》浏览原始摘要信息
点击此处可从《计算机应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号