A Framework for Testing Concurrent Programs

dc.contributor.advisorCartwright, Robert S.
dc.creatorRicken, Mathias
dc.date.accessioned2011-08-16T18:41:52Z
dc.date.available2011-08-16T18:41:52Z
dc.date.issued2011
dc.descriptionThis paper was submitted by the author prior to final official version. For official version please see http://hdl.handle.net/1911/70411.
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.
dc.format.extent140en_US
dc.format.mimetypeapplication/pdf
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>.
dc.identifier.urihttps://hdl.handle.net/1911/62284
dc.language.isoeng
dc.publisherRice University
dc.rightsCopyright is held by the author
dc.subjectTesting
dc.subjectConcurrent programming
dc.subjectJava
dc.titleA Framework for Testing Concurrent Programs
dc.type.dcmiText
dc.type.genreThesis
thesis.degree.departmentComputer Science
thesis.degree.disciplineEngineering
thesis.degree.grantorRice University
thesis.degree.levelDoctoral
thesis.degree.nameDoctor of Philosophy
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: