• DocumentCode
    1822258
  • Title

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

  • Author

    Zhang, Yang ; Zhang, Jingjun ; Zhang, Dongwen

  • Author_Institution
    Coll. of Inf. Sci. & Eng., Hebei Univ. of Sci. & Technol., Shijiazhuang, China
  • Volume
    2
  • fYear
    2009
  • fDate
    18-20 Aug. 2009
  • Firstpage
    749
  • Lastpage
    752
  • 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.
  • Keywords
    object-oriented languages; object-oriented programming; program testing; synchronisation; aspect-oriented programming; computer science; functional code; multiple buffer; object-oriented programming language; producer-consumer problem testing; separation-of-concern; synchronization problem; Computer science; Educational institutions; Functional programming; Information science; Information security; Java; Object oriented programming; Software maintenance; Testing; Yarn; Aspect-oriented programming; Producer-Consumer problem; separation of concerns; synchronization;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Information Assurance and Security, 2009. IAS '09. Fifth International Conference on
  • Conference_Location
    Xian
  • Print_ISBN
    978-0-7695-3744-3
  • Type

    conf

  • DOI
    10.1109/IAS.2009.41
  • Filename
    5284113