Cargando…

Java 9 concurrency cookbook : master the art of fast, effective Java development with the power of concurrent and parallel programming /

Master the art of fast, effective Java development with the power of concurrent and parallel programming About This Book Get detailed coverage of important recipes on multi-threading and parallel programming This book takes a close look at the Java 9 APIs and their impact on concurrency See practica...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Gonzalez, Javier Fernandez
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2017.
Edición:2nd ed.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Customer Feedback; Table of Contents; Preface; Chapter 1: Thread Management; Introduction; Creating, running, and setting the characteristics of a thread; Getting ready; How to do it ... ; How it works ... ; There's more ... ; See also; Interrupting a thread; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Controlling the interruption of a thread; Getting ready; How to do it ... ; How it works ... ; There's more ... ; See also; Sleeping and resuming a thread; Getting ready; How to do it ...
  • How it works ... There's more ... ; Waiting for the finalization of a thread; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Creating and running a daemon thread; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Processing uncontrolled exceptions in a thread; Getting ready; How to do it ... ; How it works ... ; There's more ... ; See also; Using thread local variables; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Grouping threads and processing uncontrolled exceptions in a group of threads; Getting ready; How to do it ... ; How it works ...
  • See alsoCreating threads through a factory; Getting ready; How to do it ... ; How it works ... ; See also; Chapter 2: Basic Thread Synchronization; Introduction; Synchronizing a method; Getting ready; How to do it ... ; How it works ... ; There's more ... ; See also; Using conditions in synchronized code; Getting ready; How to do it ... ; How it works ... ; There's more ... ; See also; Synchronizing a block of code with a lock; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Avoiding deadlocks; See also; Synchronizing data access with read/write locks; Getting ready ... ; How to do it ...
  • How it works ... See also; Using multiple conditions in a lock; Getting ready; How to do it ... ; How it works ... ; There's more ... ; See also; Advanced locking with the StampedLock class; Getting ready; How to do it ... ; How it works ... ; There's more ... ; See also; Chapter 3: Thread Synchronization Utilities; Introduction; Controlling concurrent access to one or more copies of a resource; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Fairness in semaphores; See also; Waiting for multiple concurrent events; Getting ready; How to do it ... ; How it works ... ; There's more ...
  • Synchronizing tasks in a common pointGetting ready; How to do it ... ; How it works ... ; There's more ... ; Resetting a CyclicBarrier object; Broken CyclicBarrier objects; See also; Running concurrent-phased tasks; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Registering participants in Phaser; Forcing the termination of Phaser; See also; Controlling phase change in concurrent-phased tasks; Getting ready; How to do it ... ; How it works ... ; See also; Exchanging data between concurrent tasks; Getting ready; How to do it ... ; How it works ... ; There's more ...