*
The moose likes Threads and Synchronization and the fly likes Java Concurrency: No mention of high level structs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Java Concurrency: No mention of high level structs" Watch "Java Concurrency: No mention of high level structs" New topic
Author

Java Concurrency: No mention of high level structs

Rohan Bryant
Greenhorn

Joined: Jan 08, 2013
Posts: 7
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

Joined: Dec 10, 2012
Posts: 20
    
    5
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.

Author of Java 7 Concurrency Cookbook
 
Don't get me started about those stupid light bulbs.
 
subject: Java Concurrency: No mention of high level structs
 
Similar Threads
choice between notify and notifyAll
What can Scala do for concurrent programming that Java can't?
Concurrency Testing
Passed Part One with 87%
General Questions for Mark Summerfield