File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Threads and Synchronization and the fly likes Question to Javier Fernandez Gonzalez: Fork /Join? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Question to Javier Fernandez Gonzalez: Fork /Join?" Watch "Question to Javier Fernandez Gonzalez: Fork /Join?" New topic

Question to Javier Fernandez Gonzalez: Fork /Join?

Luke Murphy
Ranch Hand

Joined: May 12, 2010
Posts: 300
Hi Javier,
Congratulations on your new book. Do you cover much about the fork / join framework introduced in Java 7?
Many thanks
Javier Fernandez Gonzalez

Joined: Dec 10, 2012
Posts: 20
Hello Luke

Yes, the book includes a chapter (chapter 5) dedicated to the new Fork/Join framework. That chapter includes the following recipes that show how to use the most important features of that framework:

-Creating a Fork/Join pool
-Joining the results of the tasks
-Running tasks asynchronously
-Throwing exceptions in the tasks
-Canceling a task

The chapter 9, (Additional Information) also includes a recipe about the Fork/Join Framework:

-Processing uncontrolled exceptions in a ForkJoinPool class

The chapter 9 it's not included in the paper book, but you can download it from the Packt's website

If you need more info, please let me know.

Author of Java 7 Concurrency Cookbook
I agree. Here's the link:
subject: Question to Javier Fernandez Gonzalez: Fork /Join?
jQuery in Action, 3rd edition