Implementing and Testing Producer-Consumer Problem Using Aspect-Oriented Programming | IEEE Conference Publication | IEEE Xplore

Implementing and Testing Producer-Consumer Problem Using Aspect-Oriented Programming


Abstract:

Producer-Consumer problem is a classical and representative synchronization problem in the field of computer science, which can be implemented by object-oriented programm...Show More

Abstract:

Producer-Consumer problem is a classical and representative synchronization problem in the field of computer science, which can be implemented by object-oriented programming language. However, the implementation of object-oriented programming often leads to be tangled between functional codes and synchronization codes, which are easy to lead code-scattering and code-tangling. Aspect-oriented programming (AOP) has been proposed as a technique for improving separation of concerns for the final software. This paper aims to resolve concrete aspect and implement the synchronization of producer-consumer based on AOP under two ways: single buffer and multiple buffers, and the execution result shows that AOP can resolve the producer-consumer problem effectively. Furthermore, the execution time of AOP program is shown to contrast with that of object-oriented programming, which shows that AOP can almost get the same execution time with object-oriented programming, while AOP can gain the modularization better than object-oriented programming.
Date of Conference: 18-20 August 2009
Date Added to IEEE Xplore: 09 October 2009
Print ISBN:978-0-7695-3744-3
Conference Location: Xi'an, China

Contact IEEE to Subscribe

References

References is not available for this document.