Allen Holub1893115100, 9781893115101
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 programs – programs 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.Topics covered in this book include the architecture of threads; the mutex and lock management; condition variables and counting semaphores; timers, alarms, and swing thread safety; observers and multicasters; singletons, critical sessions, and reader/writer locks; threads in an object-oriented world; and object-oriented threading architectures.While it is essential to build support for threading into a Java program from the very beginning, most books on the subjects of Java-UI 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. |
Table of contents : Taming Java Threads……Page 1 Contents at a Glance……Page 2 Table of Contents……Page 3 Copyright……Page 7 Preface……Page 8 Ch1 Architecture of Threads……Page 10 Ch2 Perils of Multithreaded Programming……Page 28 Ch3 Mutex & Lock Management……Page 60 Ch4 Condition Variables & Counting Semaphores……Page 77 Ch5 Timers, Alarms & Swing Thread Safety……Page 115 Ch6 Observers & Multicasters……Page 144 Ch7 Singletons, Critical Sections & Reader/Writer Locks……Page 167 Ch8 Threads in Object-Oriented World……Page 198 Ch9 Object-Oriented Threading Architectures……Page 253 Ch10 If I were King: Fixing Java’s Threading Problems……Page 279 List of Listings……Page 293 List of Sidebars……Page 296 |
Reviews
There are no reviews yet.