Does Java 7 actually add more to the topic of concurrency that needs to be covered more comprehensively or is this book meant to focus on that area of Java as a whole while pointing out what has changed along the way? I'm just a beginner/intermediate Java programmer, so I don't know too much of the subject myself...
Judging from what I can see about the book at Amazon's Web site, it looks pretty comprehensive. The TOC shows that it covers Thread objects first, then devotes a whole chapter to the Executor and related topics. I certainly wouldn't mind having this on my shelf.
Does this publication cover monitoring techniques? For example, if I create an executor for managing a fixed number of threads, I want to be able to monitor the thread activity for metrics, and reliability. Similarly, if I launch a thread to process some items (e.g. cleanup) without requiring my request thread to wait what techniques or suggestions are there for monitoring that thread for performance, completion, etc.?
I'm looking for a really comprehensive coverage of threads.
The book covers the most important features of the Java Concurrency API. From the creation and management of threads to the most advanced features, as the new Fork/Join framework and the customization of concurrency related classes. We have more importance to the new features, that basically are
-The new Fork/Join framework
-The phaser class, that is a new synchronization mechanism to execute tasks that can be divided into phases
-Some data structures that can be used in concurrent applications.
The book shows every concept with clear examples, so you can understand them very well.
As you say, the book covers the most important features of the Java Concurrency API, but we gave more importance to the Java 7 new features.
Javier Fernandez Gonzalez
Joined: Dec 10, 2012
Yes, the book includes some recipes about thread monitorization. The chapter 8, Testing Concurrent Applications, includes some recipes that shows how to get information about some concurrent related classes. These recipes are
-Monitoring a Lock interface
-Monitoring a Phaser class
-Monitoring an Executor framework
-Monitoring a Fork/Join pool
The chapter 9, Additional Information (it's not in the book, but you can download it from Packt's website) include two additional recipes about this
-Monitoring a Thread class
-Monitoring a Semaphore class