Java Threads and the Concurrency Utilities

Java Threads and the Concurrency Utilities

by JEFF FRIESEN
     
 

View All Available Formats & Editions

This concise book empowers all Java developers to master the complexity of the Java thread APIs and concurrency utilities. This knowledge aids the Java developer in writing correct and complex performing multithreaded applications.

Java's thread APIs and concurrency utilities are among its most powerful and challenging APIs and language features. Java beginners

Overview

This concise book empowers all Java developers to master the complexity of the Java thread APIs and concurrency utilities. This knowledge aids the Java developer in writing correct and complex performing multithreaded applications.

Java's thread APIs and concurrency utilities are among its most powerful and challenging APIs and language features. Java beginners typically find it very difficult to use these features to write correct multithreaded applications. Threads and the Concurrency Utilities helps all Java developers master and use these capabilities effectively.

This book is divided into two parts of four chapters each. Part 1 focuses on the Thread APIs and Part 2 focuses on the concurrency utilities. In Part 1, you learn about Thread API basics and runnables, synchronization and volatility, waiting and notification, and the additional capabilities of thread groups, thread local variables, and the Timer Framework. In Part 2, you learn about concurrency utilities basics and executors, synchronizers, the Locking Framework, and the additional capabilities of concurrent collections, atomic variables, and the Fork/Join Framework.

Each chapter ends with select exercises designed to challenge your grasp of the chapter's content. An appendix provides the answers to these exercises. A second appendix explores how threads are used by various standard class library APIs. Specifically, you learn about threads in the contexts of Swing, JavaFX, and Java 8's Streams API.

What you’ll learn

  • How to do thread runnables, synchronization, volatility, waiting and notification, thread groups, thread local variables, and the Timer Framework
  • How to create multithreaded applications that work correctly.
  • What are concurrency utilities basics and executors
  • What are synchronizers, the Locking Framework, concurrent collections, atomic variables, and the Fork/Join Framework and how to use them
  • How to leverage the concurrency utilities to write more complex multithreaded applications and achieve greater performance
  • How to apply thread usage in Swing, JavaFX, and Java 8 Streams API contexts

Who this book is for

The primary audience is Java beginners and the secondary audience is more advanced Java developers who have worked with the Thread APIs and the Concurrency Utilities.

Table of Contents

Part 1: Thread APIs

Chapter 1: Threads and Runnables

Chapter 2: Synchronization

Chapter 3: Waiting and Notification

Chapter 4: Additional Thread Capabilities

Part 2: Concurrency Utilities

Chapter 5: Concurrency Utilities and Executors Chapter 6: Synchronizers Chapter 7: The Locking Framework Chapter 8: Additional Concurrency Utilities

Part 3: Appendices

Appendix A: Answers to Exercises

Appendix B: Threading in Swing and JavaFX

Product Details

ISBN-13:
9781484216996
Publisher:
Apress
Publication date:
11/23/2015
Edition description:
1st ed. 2015
Pages:
200
Product dimensions:
6.10(w) x 9.25(h) x (d)

Related Subjects

Meet the Author

Jeff Friesen is a freelance tutor and software developer with an emphasis on Java (and now Android). In addition to authoring Learn Java for Android Development and co-authoring Android Recipes -- Jeff has written numerous articles on Java and other technologies for JavaWorld (a href="http://www.JavaWorld.com"JavaWorld.com/a), informIT (a href="http://www.InformIT.com"InformIT.com/a), a href="http://www.java.net"Java.net/a, and DevSource (a href="http://www.DevSource.com"DevSource.com/a). Jeff can be contacted via his website at a href="http://www.tutortutor.ca"TutorTutor.ca/a.

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >