Home Page Icon
Home Page
Table of Contents for
Title
Close
Title
by Jeff Friesen
Java Threads and the Concurrency Utilities
Cover
Title
Copyright
Dedication
Contents at a Glance
Contents
About the Author
About the Technical Reviewer
Acknowledgments
Introduction
Part I : Thread APIs
Chapter 1 : Threads and Runnables
Introducing Thread and Runnable
Creating Thread and Runnable Objects
Getting and Setting Thread State
Starting a Thread
Performing More Advanced Thread Tasks
Interrupting Threads
Joining Threads
Sleeping
Summary
Chapter 2 : Synchronization
The Problems with Threads
Race Conditions
Data Races
Cached Variables
Synchronizing Access to Critical Sections
Using Synchronized Methods
Using Synchronized Blocks
Beware of Liveness Problems
Volatile and Final Variables
Summary
Chapter 3 : Waiting and Notification
Wait-and-Notify API Tour
Producers and Consumers
Summary
Chapter 4:Additional Thread Capabilities
Thread Groups
Thread-Local Variables
Timer Framework
Timer in Depth
TimerTask in Depth
Summary
Part II : Concurrency Utilities
Chapter 5: Concurrency Utilities and Executors
Introducing the Concurrency Utilities
Exploring Executors
Summary
Chapter 6 : Synchronizers
Countdown Latches
Cyclic Barriers
Exchangers
Semaphores
Phasers
Summary
Chapter 7 : The Locking Framework
Lock
ReentrantLock
Condition
ReadWriteLock
ReentrantReadWriteLock
Summary
Chapter 8 : Additional Concurrency Utilities
Concurrent Collections
Using BlockingQueue and ArrayBlockingQueue
Learning More About ConcurrentHashMap
Atomic Variables
Understanding the Atomic Magic
Fork/Join Framework
Completion Services
Summary
Part III : Appendices
Appendix A: Answers to Exercises
Chapter 1: Threads and Runnables
Chapter 2: Synchronization
Chapter 3: Waiting and Notification
Chapter 4: Additional Thread Capabilities
Chapter 5: Concurrency Utilities and Executors
Chapter 6: Synchronizers
Chapter 7: The Locking Framework
Chapter 8: Additional Concurrency Utilities
Appendix B: Threading in Swing
A Single-Threaded Programming Model
Threading APIs
SwingUtilities and EventQueue
SwingWorker
Timer
Timer-Based Slide Show
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Cover
Next
Next Chapter
Copyright
Java Threads and the Concurrency Utilities
Jeff Friesen
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset