A Framework for Testing Concurrent Programs

dc.contributor.advisorCartwright, Robert S.en_US
dc.creatorRicken, Mathiasen_US
dc.date.accessioned2011-08-16T18:41:52Zen_US
dc.date.available2011-08-16T18:41:52Zen_US
dc.date.issued2011en_US
dc.descriptionThis paper was submitted by the author prior to final official version. For official version please see http://hdl.handle.net/1911/70411.en_US
dc.description.abstractThis study proposes a new framework that can effectively apply unit testing to concurrent programs, which are difficult to develop and debug. Test-driven development, a practice enabling developers to detect bugs early by incorporating unit testing into the development process, has become wide-spread, but it has only been effective for programs with a single thread of control. The order of operations in different threads is essentially non-deterministic, making it more complicated to reason about program properties in concurrent programs than in single-threaded programs. Because hardware, operating systems, and compiler optimizations influence the order in which operations in different threads are executed, debugging is problematic since a problem often cannot be reproduced on other machines. Multicore processors, which have replaced older single-core designs, have exacerbated these problems because they demand the use of concurrency if programs are to benefit from new processors. The existing tools for unit testing programs are either flawed or too costly. JUnit, for instance, assumes that programs are single-threaded and therefore does not work for concurrent programs; ConTest and rstest predate the revised Java memory model and make incorrect assumptions about the operations that affect synchronization. Approaches such as model checking or comprehensive schedule- based execution are too costly to be used frequently. All of these problems prevent software developers from adopting the current tools on a large scale. The proposed framework (i) improves JUnit to recognize errors in all threads, a necessary development without which all other improvements are futile, (ii) places some restrictions on the programs to facilitate automatic testing, (iii) provides tools that reduce programmer mistakes, and (iv) re-runs the unit tests with randomized schedules to simulate the execution under different conditions and on different ma- chines, increasing the probability that errors are detected. The improvements and restrictions, shown not to seriously impede programmers, reliably detect problems that the original JUnit missed. The execution with randomized schedules reveals problems that rarely occur under normal conditions. With an effective testing tool for concurrent programs, developers can test pro- grams more reliably and decrease the number of errors in spite of the proliferation of concurrency demanded by modern processors.en_US
dc.format.extent140en_US
dc.format.mimetypeapplication/pdfen_US
dc.identifier.citationRicken, Mathias. "A Framework for Testing Concurrent Programs." (2011) Rice University: <a href="https://hdl.handle.net/1911/62284">https://hdl.handle.net/1911/62284</a>.en_US
dc.identifier.urihttps://hdl.handle.net/1911/62284en_US
dc.language.isoengen_US
dc.publisherRice Universityen_US
dc.rightsCopyright is held by the authoren_US
dc.subjectTestingen_US
dc.subjectConcurrent programmingen_US
dc.subjectJavaen_US
dc.titleA Framework for Testing Concurrent Programsen_US
dc.type.dcmiTexten_US
dc.type.genreThesisen_US
thesis.degree.departmentComputer Scienceen_US
thesis.degree.disciplineEngineeringen_US
thesis.degree.grantorRice Universityen_US
thesis.degree.levelDoctoralen_US
thesis.degree.nameDoctor of Philosophyen_US
Files
Original bundle
Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
PhDThesis-Ricken.pdf
Size:
1.66 MB
Format:
Adobe Portable Document Format
Description:
PhD Thesis
License bundle
Now showing 1 - 1 of 1
No Thumbnail Available
Name:
license.txt
Size:
1.79 KB
Format:
Item-specific license agreed upon to submission
Description: