Chapter 10
Exploring the Concurrency Utilities
Chapter 7 introduced Java’s Threads API. Significant problems with Threads resulted in the development of the more powerful Concurrency Utilities Framework. In this chapter, I take you on a tour of this framework from Android’s perspective. Note that you won’t find a discussion of newer features, such as the Fork/Join Framework, because Android doesn’t support them.
Introducing the Concurrency Utilities
The low-level Threads API lets you create multithreaded applications that offer better performance and responsiveness over their single-threaded counterparts. However, there are problems:
- Low-level concurrency primitives, such as synchronized and wait()/notify(), are often hard to use correctly. ...
Get Learn Java for Android Development, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.