I have need for a LinkedBlockingQueue but what I am passing primitives to it.My data rates for adding to the Queue are about 4ms or 256 data points per sec.The issue that I am having is the data start
I found a similar question about a 开发者_运维问答PriorityQueue, the error with that one was that it wasn\'t initialized correctly. I might have the same problem, but i can\'t figure out how to initia
I\'ve implemented a pipeline approach. I\'m going to traverse a tree and I need certain values which aren\'t available beforehand... so I have to traverse the tree in parallel (or before) and once mor
I have an application that creates hundreds of instances of some objects B and C. There is an object hierarchy where object Foo contains 2 queues (b_queue and c_queue), one filled with objects of typ
I know that concurrent adds to 开发者_开发问答an stl queue in c++ can cause issues, and the way to solve this is adding a mutex lock around all add/remove calls.
It\'s me and my BlockingQueue again... I rewrote it according to this article andthis question. It sends some items and then crashes with an access violation. Here\'s the code:
I was looking at the \"usage example based on a typical producer-consumer scenario\" at: http://download.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/BlockingQueue.html#put(E)
1LinkedBlockingQueue queJobs = new LinkedBlockingQueue(150); 2.......... 3.. Some other code.... 4..........
I have this piece of code. A LinkedBlockingQueue should only throw an Exception if interrupted while waiting to add to the queue. But this queue is unbounded so it should add asap. Why does my shutdow
I have a problem with a recent customer migration to Linux (64-bit) when running a Java process. The process is spawning thousands of threads most with an identifier of futex. I\'ve looked up futex (