my dog learned polymorphism*
The moose likes Threads and Synchronization and the fly likes Java 7 Concurrency Cookbook - Use cases ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Java 7 Concurrency Cookbook - Use cases ?" Watch "Java 7 Concurrency Cookbook - Use cases ?" New topic

Java 7 Concurrency Cookbook - Use cases ?

paul nisset
Ranch Hand

Joined: May 13, 2009
Posts: 165
Does the book go into real world use cases for using multiple threads in an application ?

I've been developing relatively simple web apps and the issue has rarely come up where I need to develop a multi threaded solution.

I've had desktop app where the users needed to run print jobs on several different printers simultaneously and an app where the user need to set a timer to run a job on certain date and time ,and a third where I used threads to update a display in a java swing app . That has been about it .

Javier Fernandez Gonzalez

Joined: Dec 10, 2012
Posts: 20

Hello Paul

He have tried that the examples reflect real world situations. Take into account that each recipe explains a concept using an example and they have between 4 and 10 pages, so the examples can't be very big.

If you want to see a complete application that uses concurrency elements, you can take a look to a open source project

If you need more info, please let me know

Author of Java 7 Concurrency Cookbook
paul nisset
Ranch Hand

Joined: May 13, 2009
Posts: 165
Thanks Javier.
The section you mentioned ,in other replies, on testing multi threaded code sounds particularly interesting.
It is sorta covered in the JavaRanch Style Guide.
subject: Java 7 Concurrency Cookbook - Use cases ?
Similar Threads
Could not reserve enough space for object heap
Non J2EE transactional management in Java
Tests for the Data class/locking mechanism
Question about performance analyzing with jConsole
testing private methods with junit?