• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Javier, main differences between Java 6 and 7 for concurrence

 
Ranch Hand
Posts: 430
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

What are the main benefits that Java 7 brings for concurrence, threads, parallel programming?
What would be very hard or not possible to do with Java 6?

Thank you!


ps: Congratulations for the book. I seems to be pretty good. I'm reading the sample chapter, and I like it because there are real examples, real code and doing is a very good way to learn.
 
author
Posts: 20
5
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hello Leandro and thank you for your comments

The main features introduced by the Java 7 Concurrency API 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.

All these elements are oriented to solve concrete problems. The fork/join framework is oriented to get a better performance in problems that can be solved using a divide and conquer approach. The phaser class is uses to synchronize concurrent tasks that are divided into phases when you need to synchronize the tasks between each phase. You can solve that problems with Java 6 concurrency elements, but probably your program will have worse throwput.

If you need more info, please let me know
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic