6+ Hours of Video Instruction
Java Concurrency LiveLessons, Second Edition teaches you how to develop high-quality concurrent software applications and reusable frameworks through the use of patterns, object-oriented design and functional programming techniques, and Java language features, including Java 8 lambda expressions, parallel streams, and completable futures.
The confluence of multicore and distributed-core processors, inexpensive mass storage, ubiquitous connectivity, and commodity software platforms is driving the need for software engineers and programmers who understand how to develop concurrent software for client devices that connect to cloud computing platforms. Despite many improvements in processors, storage, and networks, however, developing quality software on time and on budget remains difficult. Moreover, developing high-quality concurrent software apps and reusable services is even harder.
Java Concurrency LiveLessons describes by example how to apply patterns and frameworks to alleviate the complexity of developing concurrent software via the use of object-oriented design and functional programming techniques and Java language features and class libraries. Many Java application examples are used throughout the course to showcase pattern-oriented design and programming techniques for concurrent software.
Intermediate to advanced
What You Will Learn
* Recognize the inherent and accidental complexities involved with developing concurrent software for Java clients and servers.
* Understand how pattern-oriented software architecture techniques can and cannot help to alleviate this complexity.
* Apply key pattern-oriented software architecture techniques to develop reusable concurrent software using Java object-oriented design and functional programming language features and class libraries.
* Know where to find additional sources of information on how to successfully apply pattern-oriented software architecture techniques to concurrent software in Java.
Who Should Take This Course
Developers looking for practical coverage of developing pattern-oriented concurrent software with Java
* You should be familiar with general object-oriented design and programming concepts such as encapsulation, abstraction, polymorphism, extensibility, and the Unified Modeling Language (UML).
* You should be familiar with fundamental object-oriented programming language features such as classes, inheritance, dynamic binding, and generic types available in Java, C++, and C#.
About LiveLessons Video Training
LiveLessons Video Training series publishes hundreds of hands-on, expert-led video tutorials covering a wide selection of technology topics designed to teach you the skills you need to succeed. This professional and personal technology video series features world-leading author instructors published by your trusted technology brands: Addison-Wesley, Cisco Press, IBM Press, Pearson IT Certification, Prentice Hall, Sams, and Que. Topics include IT Certification, Programming, Web Development, Mobile Development, Home and Office Technologies, Business and Management, and more. View all LiveLessons on InformIT at http://www.informit.com/livelessons.
Lesson 1: Overview of Java Concurrency
The first lesson presents an overview of concurrency and concurrent programming in Java. This lesson first explores the motivations for concurrency and then outlines key layers in the Java architecture, focusing on how these layers support the needs of concurrent programs on a range of computing devices. Next, the lesson shows how the benefits of concurrency make it worth the time and effort needed to master the complexities of concurrent programming in Java. This lesson focuses primarily on concepts, although it does show several examples of concurrent Java code to illustrate key points.
Lesson 2: Java Threading Mechanisms and Frameworks
Lesson 2 covers how to develop concurrent programs, the computations of which run simultaneously on one or more processor cores. This lesson first focuses on the mechanisms that Java provides to create, control, and terminate multiple threads, which are the units of computation that can be scheduled to run concurrently within a process. After covering the basics of Java threads, the lesson delves deeper into their structure and functionality, focusing on the key states in their lifecycle and showing how to manage them effectively. The lesson next covers the powerful services provided by the Java Executor framework, which decouples the creation and management of threads from the rest of the application logic and supports a range of fixed and variable-sized thread pools that run efficiently on modern multicore processors. Finally, this lesson describes key Java 8 features, such as functional interfaces, lambda expressions, method references, sequential and parallel streams, and completable futures, that support concurrency via the functional programming paradigm. Throughout this lesson, viewers see how concurrent Java applications and frameworks are developed by applying many Gang of Four and POSA patterns.
Lesson 3: Java Synchronization Mechanisms
Lesson 3 covers the capabilities that Java provides to ensure interactions between threads running computations concurrently occur in the right order, at the right time, and don’t accidentally corrupt shared data. Some Java synchronization mechanisms covered in this lesson are based on Java programming language features, such as volatile variables, synchronized methods and statements, and built-in monitor objects. The lesson also covers classes provided by the Java java.util.concurrent package, including classes that have been in Java since early versions (such as AtomicLong, ReentrantLock, ReentrantReadWriteLock, Semaphore, ConditionObject, CountDownLatch, and CyclicBarrier), as well as classes added in recent versions of Java (such as StampedLock and Phaser). The lesson analyzes many sample mechanisms, in both applications and in the java.util.concurrent package itself. Viewers learn how to develop correct and efficient concurrent programs, as well as how to understand common problems that arise when these mechanisms are applied incorrectly. The lesson also discusses how Java synchronization mechanisms are enhanced by applying many Gang of Four and POSA patterns.
Lesson 4: Case Studies of Concurrent Programming in Java
Lesson 4 provides in-depth analysis of how the Java threading and synchronization mechanisms covered in earlier lessons can be applied in practice. The first case study explores the design and implementation of a pattern-oriented framework containing two Java threads that alternate printing ping and pong on several types of computing displays. This example shows how the framework enables the use of multiple Java synchronizers to configure and coordinate the proper interactions between the ping and pong threads, as well as the main thread.
The second case study analyzes the structure and functionality of another pattern-orientated framework that uses a pool of threads created and managed by the Java Executor framework, together with various Java synchronization mechanisms to mediate concurrent access to a fixed-size pool of resources. Once again, this executor can configure and use a range of Java synchronizers.
The third case study explores the design and implementation of an application that downloads image content from remote web servers via various Java threading mechanisms and frameworks, including the Java ExecutorCompletionService framework.
The fourth and final case study revises the image processing app from the third case study to demonstrate how Java 8 functional programming features, such as lambda expressions, method references, sequential and parallel streams, and completable futures can be applied to simplify the programming of concurrent apps.
Lesson 5: Source Code Analysis of java.util.concurrent Classes
Lesson 5 explores how Java's threading and synchronization mechanisms are programmed internally. The first part of this lesson focuses on the structure and functionality of the Java Executor framework, including the various thread pool executors and the ExecutorCompletionService. The lesson also shows how these core Java framework classes are supported by various other classes, such as Future and FutureTask. The second part of this lesson analyzes the design and implementation of core Java synchronizers, such as ReentrantLock, ConditionObject, and Semaphore. As part of this analysis, we cover the structure and functionality of Java’s AbstractQueueSynchronizer class. The lesson doesn’t analyze every class or every line of code but instead focuses on the key patterns and idioms used to guide the implementation of classes in the java.util.concurrent package. Understanding the design and implementation of these classes can help programmers understand the patterns and best practices of developing software that uses Java’s concurrency capabilities effectively and efficiently.