Neha Garg, Neha Yadav, Kamal Kant Sharma and Sunita Kanaujiya. Article: Implementation of Readers-Writers Problem using Aspect Oriented Programming. IJCA Special Issue on Issues and Challenges in Networking, Intelligence and Computing Technologies ICNICT(5):33-36, November 2012. Full text available. BibTeX
@article{key:article, author = {Neha Garg and Neha Yadav and Kamal Kant Sharma and Sunita Kanaujiya}, title = {Article: Implementation of Readers-Writers Problem using Aspect Oriented Programming}, journal = {IJCA Special Issue on Issues and Challenges in Networking, Intelligence and Computing Technologies}, year = {2012}, volume = {ICNICT}, number = {5}, pages = {33-36}, month = {November}, note = {Full text available} }
Abstract
Readers-Writers problem is a classical synchronization problem in the field of computer science. It can easily be implemented using any object oriented language. However, the implementation of object oriented programming often leads code to be tangled between functional codes and synchronization codes, which are easy to lead code-scattering and code-tangling. Aspect-oriented programming (AOP) is a programming paradigm which isolates secondary or supporting functions from the main program's business logic. It aims to increase modularity by allowing the separation of cross-cutting concerns. All AOP implementations have some crosscutting expressions that encapsulate each concern in one place. With this there is minimal or no code scattering and tangling. This paper aims to resolve concrete aspect and implement the synchronization of readers-writers problem based on AOP. The execution time of AOP and OOP based solutions are measured which shows that AOP can almost get the same execution time as of object-oriented programming, but with better modularization than OOP.
References
- Charles Zhang, "FlexSync: An aspect oriented approach to Java synchronization", 31st International Conference on Software Engineering, Vancouver, Canada, May, 2009.
- G. Kiczales, J. Lamping, A. Mendhekar, C. Maeda, C. Lopes, J. -M. Loingtier, J. Irwin. "Aspect-Oriented Programming", in Proceedings of the 11th European Conference on Object-Oriented Programming, Finland,Springer-Verlag, 1997, pp. 220-242.
- G. Kiczales, E. Hilsdale, J. Hugunin, M. Kersten, J. Palm, W. G. Grisworld. "Getting started with AspectJ". Communications of the ACM, 2001, Vol. 44, No. 10, pp59-65.
- Kiczales G. , J. Lamping, A. Mendhekar, C. Maeda, C. V. Lopes, J. -M. Loingtier, and J. Irwin. Aspect-Oriented Programming. In M. Aksit and S. Matsuoka, editors. Proceedings of the 11th European Conference on Object-Oriented Programming, number 1241 in Lecture Notes in computer Science, pp. 220-242, Finland, June 9-13 1997. ECCOP'97, Springer Verlag, Berlin.
- Kiczales, G. , Lamping, J. , Mendhekar, A. , Maeda, C. ,Lopes, C. , Loingtier, J. -M. and Irwin, J. (1997) Aspectoriented programming. In ECOOP'97, Jyv¨askyl¨a, Finland,June. Lecture Notes in Computer Science, 1241, 220–242. Springer, Berlin.
- Kiczales, G. , Hilsdale, E. , Hugunin, J. , Kersten, M. , Palm,J. and Griswold, W. G. (2001) An overview of AspectJ. In ECOOP 2001, Budapest, Hungary, June. Lecture Notes in Computer Science, 2072, 327–353. Springer, Berlin. http://aspectj. org.
- Lopes C. , B. Tekinerdogan, W. de Meuter, and G. Kiczales. Aspect-Oriented Programming. In M. Aksit and S. Matsuoka, editors, Proceedings of the 12th European Conference on Object-Oriented Programming EC-COP'98, Springer Verlag, 1998.
- Yang Zhang, Jingjun Zhang and Dongwen Zhang. "Implementing and Testing Producer-Consumer Problem Using Aspect-Oriented Programming. " 2009 Fifth International Conference on Information Assurance and Security.