[concurrency-interest] Strange behavior with LinkedBlockingQueue

Joe Bowbeer jozart@blarg.net
Tue, 26 Oct 2004 17:01:47 -0700


David writes:

> It seems as if there is an actual failure
> in the ArrayBlockingQueue somewhere.

Note: Sample code uses LinkedBlockingQueue (as subject indicates)


----- Original Message ----- 
From: "David Holmes" <dholmes@dltech.com.au>
To: "Jean Morissette" <jean.morissette666@videotron.ca>; 
<concurrency-interest@altair.cs.oswego.edu>
Sent: Tuesday, October 26, 2004 4:47 PM
Subject: RE: [concurrency-interest] Strange behavior with 
LinkedBlockingQueue


> That does not seem to be the problem. I replaced the yield with a
> sleep and it still goes into a count=0 loop. It is as if
> something is silently killing or hanging the producer. Very odd.

No the producer and consumer are both live. It seems as if there is an
actual failure in the ArrayBlockingQueue somewhere.

David Holmes