Abstract

Javar is a Java source-to-source restructuring compiler, which is written in C language. It exploits implicit parallelism in loops and multi-way recursive methods in a Java program. Programmer indicates parallel regions with annotations. However, parallelization is prohibited by the compiler when a primitive variable declared outside the parallel loop body and referred to within that loop body is not a read-only access variable. In this paper, we propose to (1) fully re-implement javar by using JavaCC (2) introduce an automatic handling of primitive variable so that the compiler allows parallelization for any primitive variables with any access operation, without needing annotations. This is achieved by using Java's multithreading features such as synchronized and volatile keywords and atomic class. As a result, programmer does not care about the handling of the primitive variables referred to within the loop body. Results of experiments show performance gain.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.