JAVA CONCURRENCY AND PARALLELISM master advanced Java techniques for cloud-based applications... through concurrency and parallelism

This comprehensive book starts by establishing the foundational concepts of concurrency and parallelism, vital for cloud-native development, and gives you a complete overview, highlighting challenges and best practices. Wang expertly demonstrates Java's role in big data, machine learning, micro...

Full description

Bibliographic Details
Main Author: Wang, Jay
Format: eBook
Language:English
Published: [S.l.] PACKT PUBLISHING LIMITED 2024
Subjects:
Online Access:
Collection: O'Reilly - Collection details see MPG.ReNa
Table of Contents:
  • Cutting-edge tools for conquering cloud-native concurrency challenges
  • Conquering concurrency
  • best practices for robust cloud-native applications
  • Code examples illustrating best practices
  • Ensuring consistency
  • the bedrock of robust concurrency strategies
  • Summary
  • Exercise
  • exploring Java executors
  • Questions
  • Chapter 2: Introduction to Java's Concurrency Foundations: Threads, Processes, and Beyond
  • Technical requirements
  • Java's kitchen of concurrency
  • unveiling threads and processes
  • What are threads and processes?
  • Similarities and differences
  • Cover
  • Copyright
  • Contributors
  • Table of Contents
  • Preface
  • Part 1: Foundations of Java Concurrency and Parallelism in Cloud Computing
  • Chapter 1: Concurrency, Parallelism, and the Cloud: Navigating the Cloud-Native Landscape
  • Technical requirements
  • The dual pillars of concurrency versus parallelism
  • a kitchen analogy
  • When to use concurrency versus parallelism
  • a concise guide
  • Java and the cloud
  • a perfect alliance for cloud-native development
  • Exploring cloud service models and their impact on software development
  • Unleashing the parallel powerhouse
  • the Fork/Join framework
  • The life cycle of threads in Java
  • Activity
  • differentiating threads and processes in a practical scenario
  • The concurrency toolkit
  • java.util.concurrent
  • Threads and executors
  • Synchronization and coordination
  • Concurrent collections and atomic variables
  • Hands-on exercise
  • implementing a concurrent application using java.util.concurrent tools
  • Synchronization and locking mechanisms
  • The power of synchronization
  • protecting critical sections for thread-safe operations
  • Beyond the gatekeeper
  • exploring advanced locking techniques
  • Understanding and preventing deadlocks in multi-threaded applications
  • Hands-on activity
  • deadlock detection and resolution
  • Employing Future and Callable for result-bearing task execution
  • Safe data sharing between concurrent tasks
  • Immutable data
  • Thread local storage
  • Leveraging thread-safe collections to mitigate concurrency issues
  • Choosing between concurrent collections and atomic variables
  • Concurrent best practices for robust applications
  • Summary
  • Questions
  • Chapter 3: Mastering Parallelism in Java
  • Technical requirements
  • Java's transformation in the cloud
  • a story of innovation
  • Java
  • the cloud-native hero
  • Java's cloud-focused upgrades
  • concurrency and beyond
  • Real-world examples of successful cloud-native Java applications
  • Modern challenges in cloud-native concurrency and Java's weapons of choice
  • Wrangling distributed transactions in Java
  • beyond classic commits
  • Maintaining data consistency in cloud-native Java applications
  • Handling state in microservices architectures
  • Cloud database concurrency
  • Java's dance moves for shared resources
  • Parallelism in big data processing frameworks