Skip to Content
Java Concurrency in Practice
book

Java Concurrency in Practice

by Brian Goetz, Tim Peierls, Joshua Bloch, Joseph Bowbeer, David Holmes, Doug Lea
May 2006
Intermediate to advanced
432 pages
12h 21m
English
Addison-Wesley Professional
Content preview from Java Concurrency in Practice

Chapter 12. Testing Concurrent Programs

Concurrent programs employ similar design principles and patterns to sequential programs. The difference is that concurrent programs have a degree of nondeterminism that sequential programs do not, increasing the number of potential interactions and failure modes that must be planned for and analyzed.

Similarly, testing concurrent programs uses and extends ideas from testing sequential ones. The same techniques for testing correctness and performance in sequential programs can be applied to concurrent programs, but with concurrent programs the space of things that can go wrong is much larger. The major challenge in constructing tests for concurrent programs is that potential failures may be rare probabalistic ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Concurrency and Multithreading in Practice

Java Concurrency and Multithreading in Practice

Tatiana Fesenko
Modern Concurrency in Java

Modern Concurrency in Java

A N M Bazlur Rahman
Java Concurrency, 2/e

Java Concurrency, 2/e

Douglas Schmidt
Modern Java in Action

Modern Java in Action

Raoul-Gabriel Urma, Mario Fusco, Alan Mycroft

Publisher Resources

ISBN: 0321349601Purchase book