I need to simulate a scenario where blocking algorithms are faster than their non-blocking counterparts, mainly due to the overhead that the latter incur. I'm thinking about using Java's LinkedBlockingQueue
and ConcurrentLinkedQueue
for this scenario.
Can anyone suggest a scenario where LinkedBlockingQueue
is faster than ConcurrentLinkedQueue
?