Resolving Synchronization and Analyzing Based on Aspect-Oriented Programming

被引:1
|
作者
Zhang, Yang [1 ]
Zhang, Jingjun [2 ]
Chen, Yuejuan [3 ]
Wang, Qiaoling [1 ]
机构
[1] Hebei Univ Sci & Technol, Sch Informat Sci & Engn, Shijiazhuang, Hebei, Peoples R China
[2] Hebei Univ Engn, Sci Res Off, Handan, Hebei, Peoples R China
[3] Hebei Univ Engn, Sch Informat & Elect Engn, Handan, Hebei, Peoples R China
关键词
Synchronization; aspect-oriented programming; crosscutting concern; AspectJ;
D O I
10.1109/ISCSCT.2008.95
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Synchronization is an important problem in the design and development of the software, which has been resolved in the object-oriented programming (OOP). However, the implementation of OOP is easy to leads to code-tangling and code-scattering between functional properties and crosscutting properties. Aspect-oriented programming (AOP) can solve the problem of code-tangling and code-scatterting, and provide a mechanism of the modularization of crosscutting properties. Synchronization, as a typical aspect, is resolved based on AOP in this paper. Taking the classical producer-consumer problem as a case study, this paper identifies the synchronization as a crosscutting concern, modularizes it as an Aspect and implements the program with AspectJ. The execution result shows AOP can not only resolve the problem of synchronization, but also gain the effect of modularization better than OOP. Furthermore, compared execution time of AOP program with that of OOP program, the result shows that the execution time of AOP is similar to OOP.
引用
收藏
页码:34 / +
页数:2
相关论文
共 50 条
  • [1] Aspect-oriented programming
    Lopes, CV
    Kiczales, G
    [J]. TECHNOLOGY OF OBJECT-ORIENTED LANGUAGES AND SYSTEMS - TOOLS 34, PROCEEDINGS, 2000, : 461 - 461
  • [2] Aspect-oriented programming
    Bergmans, L
    Lopes, CV
    [J]. OBJECT-ORIENTED TECHNOLOGY, 1999, 1743 : 288 - 313
  • [3] Aspect-oriented programming
    Kiczales, G
    [J]. ICSE 05: 27th International Conference on Software Engineering, Proceedings, 2005, : 730 - 730
  • [4] Aspect-oriented programming
    Lopes, CV
    Kiczales, G
    [J]. TECHNOLOGY OF OBJECT-ORIENTED LANGUAGES - TOOLS 33, PROCEEDINGS, 2000, : 468 - 468
  • [5] Aspect-oriented programming
    Murphy, C
    Schwanninger, C
    [J]. IEEE SOFTWARE, 2006, 23 (01) : 20 - 23
  • [6] Aspect-oriented programming
    Kiczales, G
    Lamping, J
    Mendhekar, A
    Maeda, C
    Lopes, C
    Loingtier, JM
    Irwin, J
    [J]. ECOOP'97: OBJECT-ORIENTED PROGRAMMING, 1997, 1241 : 220 - 242
  • [7] Aspect-oriented programming
    Elrad, Tzilla
    Filman, Robert E.
    Bader, Atef
    [J]. Communications of the ACM, 2001, 44 (10) : 29 - 32
  • [8] Aspect-Oriented Programming Reloaded
    Rebelo, Henrique
    Leavens, Gary T.
    [J]. PROCEEDINGS OF THE 21ST BRAZILIAN SYMPOSIUM ON PROGRAMMING LANGUAGES (SBLP 2017), 2017,
  • [9] Superimpositions and aspect-oriented programming
    [J]. Katz, S. (katz@cs.technion.ac.il), 1600, Oxford University Press (46):
  • [10] Aspect-oriented programming with AspectJ
    Colyer, A
    Clement, A
    [J]. IBM SYSTEMS JOURNAL, 2005, 44 (02) : 301 - 308