CFP last date
20 June 2024
Reseach Article

Implementation of Readers-Writers Problem using Aspect Oriented Programming

Published on November 2012 by Neha Garg, Neha Yadav, Kamal Kant Sharma, Sunita Kanaujiya
Issues and Challenges in Networking, Intelligence and Computing Technologies
Foundation of Computer Science USA
ICNICT - Number 5
November 2012
Authors: Neha Garg, Neha Yadav, Kamal Kant Sharma, Sunita Kanaujiya
66d64771-c8d0-4b00-bc3f-c5366070c90f

Neha Garg, Neha Yadav, Kamal Kant Sharma, Sunita Kanaujiya . Implementation of Readers-Writers Problem using Aspect Oriented Programming. Issues and Challenges in Networking, Intelligence and Computing Technologies. ICNICT, 5 (November 2012), 33-36.

@article{
author = { Neha Garg, Neha Yadav, Kamal Kant Sharma, Sunita Kanaujiya },
title = { Implementation of Readers-Writers Problem using Aspect Oriented Programming },
journal = { Issues and Challenges in Networking, Intelligence and Computing Technologies },
issue_date = { November 2012 },
volume = { ICNICT },
number = { 5 },
month = { November },
year = { 2012 },
issn = 0975-8887,
pages = { 33-36 },
numpages = 4,
url = { /specialissues/icnict/number5/9447-1063/ },
publisher = {Foundation of Computer Science (FCS), NY, USA},
address = {New York, USA}
}
%0 Special Issue Article
%1 Issues and Challenges in Networking, Intelligence and Computing Technologies
%A Neha Garg
%A Neha Yadav
%A Kamal Kant Sharma
%A Sunita Kanaujiya
%T Implementation of Readers-Writers Problem using Aspect Oriented Programming
%J Issues and Challenges in Networking, Intelligence and Computing Technologies
%@ 0975-8887
%V ICNICT
%N 5
%P 33-36
%D 2012
%I International Journal of Computer Applications
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
  1. Charles Zhang, "FlexSync: An aspect oriented approach to Java synchronization", 31st International Conference on Software Engineering, Vancouver, Canada, May, 2009.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. 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.
Index Terms

Computer Science
Information Sciences

Keywords

Readers-writers Problem Object Oriented Programming(oop) Aspect Oriented Programming(aop) Synchronization