Skip to main content
  • Book
  • © 2015

Java Threads and the Concurrency Utilities

Apress

Authors:

  • Everything you want to know about Java's support for threads and concurrency in one place
  • Chapter exercises designed to reinforce chapter content and help the reader retain knowledge
  • Lambdas, the try-with-resources statement, and other modern language features are present
  • Standard Class Library use of threads in Swing, JavaFX, and Java 8 Streams API contexts explained

Buy it now

Buying options

eBook USD 34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (10 chapters)

  1. Front Matter

    Pages i-xviii
  2. Thread APIs

    1. Front Matter

      Pages 1-1
    2. Threads and Runnables

      • Jeff Friesen
      Pages 3-19
    3. Synchronization

      • Jeff Friesen
      Pages 21-38
    4. Waiting and Notification

      • Jeff Friesen
      Pages 39-49
    5. Additional Thread Capabilities

      • Jeff Friesen
      Pages 51-66
  3. Concurrency Utilities

    1. Front Matter

      Pages 67-67
    2. Concurrency Utilities and Executors

      • Jeff Friesen
      Pages 69-82
    3. Synchronizers

      • Jeff Friesen
      Pages 83-106
    4. The Locking Framework

      • Jeff Friesen
      Pages 107-124
    5. Additional Concurrency Utilities

      • Jeff Friesen
      Pages 125-146
  4. Appendices

    1. Front Matter

      Pages 147-147
    2. Answers to Exercises

      • Jeff Friesen
      Pages 149-168
    3. Threading in Swing

      • Jeff Friesen
      Pages 169-193
  5. Back Matter

    Pages 195-200

About this book

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 Will 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


Audience


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.

About the author

Jeff Friesen is a freelance tutor, author, and software developer with an emphasis on Java, Android, and HTML5. In addition to writing this book, Jeff has written other books on Java and Android for Apress, and numerous articles on Java and other technologies for JavaWorld, informIT, java-dot-net, SitePoint, and others.

Bibliographic Information

Buy it now

Buying options

eBook USD 34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access