DocumentCode :
2090521
Title :
Resolving Synchronization and Analyzing Based on Aspect-Oriented Programming
Author :
Zhang, Yang ; Zhang, Jingjun ; Chen, Yuejuan ; Wang, Qiaoling
Author_Institution :
Sch. of Inf. Sci. & Eng., Hebei Univ. of Sci. & Technol., Shijiazhuang, China
Volume :
1
fYear :
2008
fDate :
20-22 Dec. 2008
Firstpage :
34
Lastpage :
37
Abstract :
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-scattering, 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.
Keywords :
object-oriented programming; AspectJ; aspect-oriented programming; code-scattering; code-tangling; object-oriented programming; producer-consumer problem; software synchronization; Computer languages; Computer science; Information analysis; Information science; Java; Mechanical factors; Object oriented programming; Scattering; Security; Yarn; AspectJ; Synchronization; aspect-oriented programming; crosscutting concern;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Computer Science and Computational Technology, 2008. ISCSCT '08. International Symposium on
Conference_Location :
Shanghai
Print_ISBN :
978-1-4244-3746-7
Type :
conf
DOI :
10.1109/ISCSCT.2008.95
Filename :
4731368
Link To Document :
بازگشت