Java Threads

Inhaltsverzeichnis

Preface; Who Should Read This Book?; Versions Used in This Book; What's New in This Edition?; Organization of This Book; Conventions Used in This Book; Code Examples; How to Contact Us; Safari Enabled; Acknowledgments; Chapter 1: Introduction to Threads; 1.1 Java Terms; 1.2 About the Examples; 1.3 Why Threads?; 1.4 Summary; Chapter 2: Thread Creation and Management; 2.1 What Is a Thread?; 2.2 Creating a Thread; 2.3 The Lifecycle of a Thread; 2.4 Two Approaches to Stopping a Thread; 2.5 The Runnable Interface; 2.6 Threads and Objects; 2.7 Summary; Chapter 3: Data Synchronization; 3.1 The Synchronized Keyword; 3.2 The Volatile Keyword; 3.3 More on Race Conditions; 3.4 Explicit Locking; 3.5 Lock Scope; 3.6 Choosing a Locking Mechanism; 3.7 Nested Locks; 3.8 Deadlock; 3.9 Lock Fairness; 3.10 Summary; Chapter 4: Thread Notification; 4.1 Wait and Notify; 4.2 Condition Variables; 4.3 Summary; Chapter 5: Minimal Synchronization Techniques; 5.1 Can You Avoid Synchronization?; 5.2 Atomic Variables; 5.3 Thread Local Variables; 5.4 Summary; Chapter 6: Advanced Synchronization Topics; 6.1 Synchronization Terms; 6.2 Synchronization Classes Added in J2SE 5.0; 6.3 Preventing Deadlock; 6.4 Deadlock Detection; 6.5 Lock Starvation; 6.6 Summary; Chapter 7: Threads and Swing; 7.1 Swing Threading Restrictions; 7.2 Processing on the Event-Dispatching Thread; 7.3 Using invokeLater( ) and invokeAndWait( ); 7.4 Long-Running Event Callbacks; 7.5 Summary; Chapter 8: Threads and Collection Classes; 8.1 Overview of Collection Classes; 8.2 Synchronization and Collection Classes; 8.3 The Producer/Consumer Pattern; 8.4 Using the Collection Classes; 8.5 Summary; Chapter 9: Thread Scheduling; 9.1 An Overview of Thread Scheduling; 9.2 Scheduling with Thread Priorities; 9.3 Popular Threading Implementations; 9.4 Summary; Chapter 10: Thread Pools; 10.1 Why Thread Pools?; 10.2 Executors; 10.3 Using a Thread Pool; 10.4 Queues and Sizes; 10.5 Thread Creation; 10.6 Callable Tasks and Future Results; 10.7 Single-Threaded Access; 10.8 Summary; Chapter 11: Task Scheduling; 11.1 Overview of Task Scheduling; 11.2 The java.util.Timer Class; 11.3 The javax.swing.Timer Class; 11.4 The ScheduledThreadPoolExecutor Class; 11.5 Summary; Chapter 12: Threads and I/O; 12.1 A Traditional I/O Server; 12.2 A New I/O Server; 12.3 Interrupted I/O; 12.4 Summary; Chapter 13: Miscellaneous Thread Topics; 13.1 Thread Groups; 13.2 Threads and Java Security; 13.3 Daemon Threads; 13.4 Threads and Class Loading; 13.5 Threads and Exception Handling; 13.6 Threads, Stacks, and Memory Usage; 13.7 Summary; Chapter 14: Thread Performance; 14.1 Overview of Performance; 14.2 Synchronized Collections; 14.3 Atomic Variables and Contended Synchronization; 14.4 Thread Creation and Thread Pools; 14.5 Summary; Chapter 15: Parallelizing Loops for Multiprocessor Machines; 15.1 Parallelizing a Single-Threaded Program; 15.2 Multiprocessor Scaling; 15.3 Summary; Appendix A: Superseded Threading Utilities; A.1 The BusyFlag Class; A.2 The CondVar Class; A.3 The Barrier Class; A.4 The RWLock Class; A.5 The ThreadPool Class; A.6 The JobScheduler Class; A.7 Summary; Colophon;

Java Threads

Covers J2SE 5.0

Buch (Taschenbuch, Englisch)

37,99 €

inkl. gesetzl. MwSt.
Taschenbuch

Taschenbuch

37,99 €

Java Threads

Ebenfalls verfügbar als:

Taschenbuch

Taschenbuch

ab 37,99 €
eBook

eBook

ab 25,99 €

Artikel liefern lassen

Beschreibung

Details

Einband

Taschenbuch

Erscheinungsdatum

01.10.2004

Verlag

O'Reilly Media

Seitenzahl

340

Maße (L/B/H)

23,4/17,8/2,3 cm

Beschreibung

Details

Einband

Taschenbuch

Erscheinungsdatum

01.10.2004

Verlag

O'Reilly Media

Seitenzahl

340

Maße (L/B/H)

23,4/17,8/2,3 cm

Gewicht

567 g

Auflage

3. Auflage

Sprache

Englisch

ISBN

978-0-596-00782-9

Das meinen unsere Kund*innen

0.0

0 Bewertungen

Informationen zu Bewertungen

Zur Abgabe einer Bewertung ist eine Anmeldung im Kund*innenkonto notwendig. Die Authentizität der Bewertungen wird von uns nicht überprüft. Wir behalten uns vor, Bewertungstexte, die unseren Richtlinien widersprechen, entsprechend zu kürzen oder zu löschen.

Verfassen Sie die erste Bewertung zu diesem Artikel

Helfen Sie anderen Kund*innen durch Ihre Meinung

Erste Bewertung verfassen

Unsere Kund*innen meinen

0.0

0 Bewertungen filtern

Die Leseprobe wird geladen.
  • Java Threads
  • Preface; Who Should Read This Book?; Versions Used in This Book; What's New in This Edition?; Organization of This Book; Conventions Used in This Book; Code Examples; How to Contact Us; Safari Enabled; Acknowledgments; Chapter 1: Introduction to Threads; 1.1 Java Terms; 1.2 About the Examples; 1.3 Why Threads?; 1.4 Summary; Chapter 2: Thread Creation and Management; 2.1 What Is a Thread?; 2.2 Creating a Thread; 2.3 The Lifecycle of a Thread; 2.4 Two Approaches to Stopping a Thread; 2.5 The Runnable Interface; 2.6 Threads and Objects; 2.7 Summary; Chapter 3: Data Synchronization; 3.1 The Synchronized Keyword; 3.2 The Volatile Keyword; 3.3 More on Race Conditions; 3.4 Explicit Locking; 3.5 Lock Scope; 3.6 Choosing a Locking Mechanism; 3.7 Nested Locks; 3.8 Deadlock; 3.9 Lock Fairness; 3.10 Summary; Chapter 4: Thread Notification; 4.1 Wait and Notify; 4.2 Condition Variables; 4.3 Summary; Chapter 5: Minimal Synchronization Techniques; 5.1 Can You Avoid Synchronization?; 5.2 Atomic Variables; 5.3 Thread Local Variables; 5.4 Summary; Chapter 6: Advanced Synchronization Topics; 6.1 Synchronization Terms; 6.2 Synchronization Classes Added in J2SE 5.0; 6.3 Preventing Deadlock; 6.4 Deadlock Detection; 6.5 Lock Starvation; 6.6 Summary; Chapter 7: Threads and Swing; 7.1 Swing Threading Restrictions; 7.2 Processing on the Event-Dispatching Thread; 7.3 Using invokeLater( ) and invokeAndWait( ); 7.4 Long-Running Event Callbacks; 7.5 Summary; Chapter 8: Threads and Collection Classes; 8.1 Overview of Collection Classes; 8.2 Synchronization and Collection Classes; 8.3 The Producer/Consumer Pattern; 8.4 Using the Collection Classes; 8.5 Summary; Chapter 9: Thread Scheduling; 9.1 An Overview of Thread Scheduling; 9.2 Scheduling with Thread Priorities; 9.3 Popular Threading Implementations; 9.4 Summary; Chapter 10: Thread Pools; 10.1 Why Thread Pools?; 10.2 Executors; 10.3 Using a Thread Pool; 10.4 Queues and Sizes; 10.5 Thread Creation; 10.6 Callable Tasks and Future Results; 10.7 Single-Threaded Access; 10.8 Summary; Chapter 11: Task Scheduling; 11.1 Overview of Task Scheduling; 11.2 The java.util.Timer Class; 11.3 The javax.swing.Timer Class; 11.4 The ScheduledThreadPoolExecutor Class; 11.5 Summary; Chapter 12: Threads and I/O; 12.1 A Traditional I/O Server; 12.2 A New I/O Server; 12.3 Interrupted I/O; 12.4 Summary; Chapter 13: Miscellaneous Thread Topics; 13.1 Thread Groups; 13.2 Threads and Java Security; 13.3 Daemon Threads; 13.4 Threads and Class Loading; 13.5 Threads and Exception Handling; 13.6 Threads, Stacks, and Memory Usage; 13.7 Summary; Chapter 14: Thread Performance; 14.1 Overview of Performance; 14.2 Synchronized Collections; 14.3 Atomic Variables and Contended Synchronization; 14.4 Thread Creation and Thread Pools; 14.5 Summary; Chapter 15: Parallelizing Loops for Multiprocessor Machines; 15.1 Parallelizing a Single-Threaded Program; 15.2 Multiprocessor Scaling; 15.3 Summary; Appendix A: Superseded Threading Utilities; A.1 The BusyFlag Class; A.2 The CondVar Class; A.3 The Barrier Class; A.4 The RWLock Class; A.5 The ThreadPool Class; A.6 The JobScheduler Class; A.7 Summary; Colophon;