Journal of Computer Applications ›› 2014, Vol. 34 ›› Issue (11): 3096-3099.DOI: 10.11772/j.issn.1001-9081.2014.11.3096

Previous Articles     Next Articles

Parallel framework based on aspect-oriented programming and run-time reflection

ZHANG Yang1,ZHANG Dongwen1,WANG Yizhuo2   

  1. 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
  • Received:2014-07-24 Revised:2014-08-06 Online:2014-12-01 Published:2014-11-01
  • Contact: ZHANG Yang

基于面向方面和运行时反射技术的并行框架

张杨1,张冬雯1,王一拙2   

  1. 1. 河北科技大学 信息科学与工程学院, 石家庄 050000
    2. 北京理工大学 计算机学院,北京 100081
  • 通讯作者: 张杨
  • 作者简介:张杨(1980-),男,河北抚宁人,讲师,博士,CCF会员,主要研究方向:软件重构、并行程序设计;张冬雯(1964-),女,河北石家庄人,教授,博士,主要研究方向:软件工程;王一拙(1978-), 男,陕西西安人,讲师,博士,主要研究方向:并行编程模型。
  • 基金资助:

    河北省自然科学基金

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.

摘要:

针对使用并行库JOMP的程序在性能方面存在的不足,提出一个可以分离并行逻辑和功能逻辑的并行框架。该框架对程序中需要并行处理的部分进行标记,采用面向方面和运行时反射技术实现被标记部分的处理,其中面向方面技术用于实现并行逻辑的分离和编织,运行时反射技术用于获取运行时被标记部分的相关信息,以并行库(waxberry)的方式实现了该并行框架。使用基准测试程序JGF套件中的三个测试程序对并行库进行了测试,实验结果表明,应用该并行库的程序可以获得较好的性能。

CLC Number: