aspose file tools*
The moose likes Threads and Synchronization and the fly likes Question about Java 7 Concurrency Cookbook Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Question about Java 7 Concurrency Cookbook" Watch "Question about Java 7 Concurrency Cookbook" New topic
Author

Question about Java 7 Concurrency Cookbook

Jack Moore Iii
Ranch Hand

Joined: Jun 07, 2012
Posts: 76
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...
Stevens Miller
Ranch Hand

Joined: Jul 26, 2012
Posts: 531
    
    3

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.

The Java 7 Release Notes only list a couple of items under "Concurrency Utilities Enhancements in Java SE 7," but both of them (ThreadLocalRandom and java.lang.Phaser) appear in the index. Of course, the author can tell you more, but it does look like it's both a complete reference and current with the title version.
Dan Olson
Greenhorn

Joined: Mar 31, 2011
Posts: 1
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.
Javier Fernandez Gonzalez
author
Greenhorn

Joined: Dec 10, 2012
Posts: 20
    
    5

Hello Jack Moore Iii

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.

If you need more info, please let me know.


Author of Java 7 Concurrency Cookbook
Javier Fernandez Gonzalez
author
Greenhorn

Joined: Dec 10, 2012
Posts: 20
    
    5

Hello Stevens Miller

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
author
Greenhorn

Joined: Dec 10, 2012
Posts: 20
    
    5

Hello Dan

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

If you need more info, please let me know

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Question about Java 7 Concurrency Cookbook