• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Concurrency: No mention of high level structs

 
Rohan Bryant
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDK5 defined high level synchronizers based on common patterns of concurrency (cyclic barrier, latches, producer-consumer, etc) that
obviated the need to implement concurrency using low level thread-based primitives. The book mentions none of these constructs.
Have these not changed/been enhanced in JDK7?

Rohan Baby
 
Javier Fernandez Gonzalez
author
Greenhorn
Posts: 20
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rohan

The book include the high level synchronizers that you mention. Chapter 3, Thread Synchronization Utilities, includes recipes about Semaphores, CountDownLatch, CyclicBarrier and Exchanger classes. The Java 7 API includes a new synchronization utility, the Phaser class. This class is useful when you have to execute concurrent tasks divided into phases and you need to synchronize them between each phase.

If you need more info, please let me know.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic