wood burning stoves 2.0*
The moose likes Threads and Synchronization and the fly likes Java 7 Concurrency Cookbook: Concurrency Evolution Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Java 7 Concurrency Cookbook: Concurrency Evolution" Watch "Java 7 Concurrency Cookbook: Concurrency Evolution" New topic
Author

Java 7 Concurrency Cookbook: Concurrency Evolution

Kevin Florish
Ranch Hand

Joined: Jan 06, 2009
Posts: 163
Good luck with the book

I notice for the first time in many releases of Java that new functionality has been introduced for concurrent processing.

Does this change our complete approach to concurrent practices and if so does the book cover this as well as the new functionality?

Thanks Kevin.


Java5 Tutorials | Java6 Tutorials | HTML/CSS Tutorials | JavaScript and jQuery Tutorials
Bob Scott
Ranch Hand

Joined: Oct 04, 2012
Posts: 40

Hi Javier,
I'm returning to Java after a long hiatus but have most recently been in the C# world. I realize that parallelism and thread concurrency are different, but regarding parallelism in C#, the challenge for the programmer was not learning the syntax. The REAL challenge is learning when it's (parallelism) effective (spotting when it's effective in code) and when it can actually hurt you speed-wise. Was wondering if this was an issue with thread synchronization and if you covered anything similar in the book.

All the best--
haydnguy
Henry Eck
Greenhorn

Joined: Mar 18, 2004
Posts: 6

Hi, I am interested in using separate processor cores for different Threads or groups of Threads. Is there anything in Java 7 and/or the book which would help me to do this ? Thanks !
Javier Fernandez Gonzalez
author
Greenhorn

Joined: Dec 10, 2012
Posts: 20
    
    5
Hello Kevin

I think the new features of Java 7 Concurrency API doesn't change the approach to concurrency practices. Basically, the new features introduced with this version are

-The new Fork/Join framework, that is oriented to problems that can be resolved using the divide and conquer technique
-The phaser synchronization method, that is oriented to the execution of tasks that can be divided into phases
-Some new data structures that can be used in concurrent applications

So, basically, they are specializations oriented to a concrete class of problems.

The book covers the most important aspects of the Java 7 Concurrency API, but we gave more importance to the new features.

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 Bob

In every concurrent application, independently of the programming language, the design phase is critical. The Java Concurrency API give you the tools to implement concurrent applications, but you have to use well. If you do a bad design of your concurrent application, you will get a bad throughput or bad results if you don't apply well the synchronization mechanisms.

The book includes a lot of examples that show how to use the java concurrency mechanisms in a correct way, so you won't have problems in your concurrent applications. The book also includes and appendix (it's not in the book, but you can download them from the Packt's website) that includes some tips about how to design concurrent applications.

If you need more info, please let me know.
Javier Fernandez Gonzalez
author
Greenhorn

Joined: Dec 10, 2012
Posts: 20
    
    5
Hi Herry

Java Concurrecy API uses all the cores available in the machine to execute the threads. I think the most interesting mechanism to you are the Executor Framework or the new Fork/Join Framework. The book includes a chapter about each one (Chapters 4 and 5). If you give me more information about the kind of problem you need to solve, i can give you more help.

If you need more info, please let me know.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java 7 Concurrency Cookbook: Concurrency Evolution
 
Similar Threads
Which book do you suggest to learn Java threading?
New to multithreading
j2se 5.0 and concurrency
C++ vs Java concurrency
Java Concurrency in Practice by Brian Goetz, Tim Peierls, Joseph Bowbeer, et all