Sciweavers

ICSE
2009
IEEE-ACM

Refactoring sequential Java code for concurrency via concurrent libraries

15 years 9 days ago
Refactoring sequential Java code for concurrency via concurrent libraries
Parallelizing existing sequential programs to run efficiently on multicores is hard. The Java 5 package java.util.concurrent (j.u.c.) supports writing concurrent programs: much of the complexity of writing threadsafe and scalable programs is hidden in the library. To use this package, programmers still need to reengineer existing code. This is tedious because it requires changing many lines of code, is error-prone because programmers can use the wrong APIs, and is omission-prone because programmers can miss opportunities to use the enhanced APIs. This paper presents our tool, CONCURRENCER, that enables programmers to refactor sequential code into parallel code that uses three j.u.c. concurrent utilities. CONCURRENCER does not require any program annotations. Its transformations span multiple, non-adjacent, program statements. A find-and-replace tool can not perform such transformations, which require program analysis. Empirical evaluation shows that CONCURRENCER refactors code effecti...
Danny Dig, John Marrero, Michael D. Ernst
Added 17 Nov 2009
Updated 17 Nov 2009
Type Conference
Year 2009
Where ICSE
Authors Danny Dig, John Marrero, Michael D. Ernst
Comments (0)