User Tools

Site Tools


project:week10

Testing and Debugging Concurrent Programs

Lecture 1

Problem: How can a sequential program be debugged?

  • Print statements
  • Debugging tools
    • Step through execution
    • Breakpoints
    • Watches

Problem: What are the difficulties associated with debugging a concurrent program?

  • Non-repeatability
  • Race conditions
  • Vast number of possible program states

Examples

Lecture 2

Problem: How can concurrent debugging issues be overcome?

  • Good design
    • UML diagrams
    • Straightforward interactions between threads
  • Good implementation
    • Good programming style
    • Good documentation
  • Good testing
    • Unit testing
    • Black box testing
    • White box testing
    • Regression testing

Examples

Lab

project/week10.txt · Last modified: 2010/05/11 14:48 by jtk