ZHANG Yang, LIU Chen-guang, ZHANG Dong-wen, ZHENG Kun, ZHENG Ya-jie. Software Refactoring for Java ThreadsJ. Transactions of Beijing institute of Technology, 2018, 38(11): 1149-1155. DOI: 10.15918/j.tbit1001-0645.2018.11.008
Citation: ZHANG Yang, LIU Chen-guang, ZHANG Dong-wen, ZHENG Kun, ZHENG Ya-jie. Software Refactoring for Java ThreadsJ. Transactions of Beijing institute of Technology, 2018, 38(11): 1149-1155. DOI: 10.15918/j.tbit1001-0645.2018.11.008

Software Refactoring for Java Threads

  • Java thread mechanisms, such as Thread and Executor, are different in the thread management pattern, code and the performance. To implement the automated refactoring between different thread mechanism and help programmers to choose the right thread mechanism, an automated refactoring method was proposed for Java thread mechanism able refactoring between Thread and Executor. To test the validity of the method, an automated refactoring tool named Rethreader was developed in Eclipse JDT. In the experimentation, several programs in the Java Grande Form (JGF) were tested, including Series, Crypt, Lufact, Sparsematmult and montecarlo. The experimental results show that the Rethreader can successfully implement the automatic refactoring from Thread to Executor within 1 s.
  • loading

Catalog

    Turn off MathJax
    Article Contents

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return