Parallel
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 aSynchronousQueue
, both sides of the queue (consumer and producer) will block until there is a corresponding producer and consumer, respectively.Related Reading
More Insights
INFO-LINK
To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy. | |