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.About the author:Allen Holub is a design consultant, programmer, educator and author specializing in Object-Oriented Design, Java, C++, and systems programming.
A recognized authority in Java programming, he has worked in the computer field since 1979 and was an early adopter of Java, programming in it since 1995. At the time of this publication, Holub is a contributing editor for "JavaWorld", and he is a popular columnist appearing in many computer magazines including: "Dr. Dobb's Journal", "Microsoft Systems Journal", "Programmers Journal", "BYTE", "Windows Tech Journal", "Mac Tech Journal", and "C Gazette".
* Chapter 1: The Architecture of Threads * Chapter 2: The Perils of Multithreaded Programming * Chapter 3: The Mutex and Lock Management * Chapter 4: Condition Variables and Counting Semaphores * Chapter 5: Timers, Alarms, and Swing Thread Safety * Chapter 6: Observers and Multicasters * Chapter 7: Singletons, Critical Sections, and Reader/Writer Locks * Chapter 8: Threads in an Object-Oriented World * Chapter 9: Object-Oriented Threading Architectures * Chapter 10: If I Were King: Fixing Java's Threading Problems * Index