A Framework for Testing Concurrent Programs

dc.contributor.advisorCartwright, Robert S.
dc.creatorRicken, Mathias Guenter
dc.date.accessioned2013-03-08T00:38:06Z
dc.date.available2013-03-08T00:38:06Z
dc.date.issued2011
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. Multi-core 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 machines, 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 programs more reliably and decrease the number of errors in spite of the proliferation of concurrency demanded by modern processors.
dc.format.extent158 p.en_US
dc.format.mimetypeapplication/pdf
dc.identifier.callnoTHESIS COMP. SCI. 2011 RICKEN
dc.identifier.citationRicken, Mathias Guenter. "A Framework for Testing Concurrent Programs." (2011) Diss., Rice University. <a href="https://hdl.handle.net/1911/70411">https://hdl.handle.net/1911/70411</a>.
dc.identifier.digitalRickenMen_US
dc.identifier.urihttps://hdl.handle.net/1911/70411
dc.language.isoeng
dc.rightsCopyright is held by the author, unless otherwise indicated. Permission to reuse, publish, or reproduce the work beyond the bounds of fair use or other exemptions to copyright law must be obtained from the copyright holder.
dc.subjectApplied sciences
dc.subjectMultithreading
dc.subjectConcurrent programming
dc.subjectScheduling
dc.subjectComputer engineering
dc.subjectComputer science
dc.titleA Framework for Testing Concurrent Programs
dc.typeThesis
dc.type.materialText
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:
RickenM.pdf
Size:
2.34 MB
Format:
Adobe Portable Document Format