A multithreaded application is one that appears to be doing two things at once; it is the key to taking full advantage of the Java language. In this book, Java expert Allen Holub takes you step-by-step through the key issues related to multithreaded programming. In order to write a real multithreaded application in Java, programmers need to supplement knowledge of the basic functionality of the language with both an in-depth understanding of how threads work and a significant library of helper classes. This book provides both: it explains how threads work and the problems that arise in multithreaded programs, and it implements a full-blown threading package that can be used to implement real multithreaded programs. It is also ideal for those writing Java applications based on AWT and SWING since a correct understanding of multithreading is vital for graphics intensive programming.
Learning how to write multithreaded applications is the key to taking full advantage of the Java platform. In Taming Java Threads, well-known columnist and Java expert Allen Holub provides Java programmers with the information they need to write real multithreaded programsprograms with real code. Holub provides an in-depth explanation of how threads work along with information about how to solve common problems such as deadlocks and race conditions. He not only explains common problems, but also provides the uncommon solutions that mark the difference between production-level code and toy demos.
While it is essential to build support for threading into a Java program from the very beginning, most books on the subjects of Java user interface construction and Java networking barely touch on threading topics. Along with being a basic Java reference, this book is a must-read for any Java developer.
Inhaltsverzeichnis
1 The Architecture of Threads. - 2 The Perils of Multithreaded Programming. - 3 The Mutex and Lock Management. - 4 Condition Variables and Counting Semaphores. - 5 Timers, Alarms, and Swing Thread Safety. - 6 Observers and Multicasters. - 7 Singletons, Critical Sections, and Reader/Writer Locks. - 8 Threads in an Object-Oriented World. - 9 Object-Oriented Threading Architectures. - 10 If I Were King: Fixing Java s Threading Problems.