LinkedBlockingQueue limit ignored?

Posted by tgguy on Stack Overflow See other posts from Stack Overflow or by tgguy
Published on 2010-05-03T21:55:47Z Indexed on 2010/05/03 22:08 UTC
Read the original article Hit count: 160

Filed under:
|

I created a Java LinkedBlockingQueue like new LinkedBlockingQueue(1) to limit the size of the queue to 1. However, in my testing, this seems to be ignored and there is often several things in the queue at any given time. Why is this?

© Stack Overflow or respective owner

Related posts about java

Related posts about concurrency