Java Concurrency: Queue Processing, Part 2

There are times when you need to process different actions in different threads, but they need to be coordinated using a hand-off pattern. With a SynchronousQueue, both sides of the queue (consumer and producer) will block until there is a corresponding producer and consumer, respectively.


April 15, 2012
URL:http://www.drdobbs.com/database/pattern-matching-the-gestalt-approach/database/java-concurrency-queue-processing-part-2/232900063

Terms of Service | Privacy Statement | Copyright © 2024 UBM Tech, All rights reserved.