Hi,
I have an application that uses a queue.
I have one thread that populates the queue and a second that takes items off
of the queue and processes them
At the moment all i have is these 2 threads. I may use another thread to
process the items separately so that i now have one thread that puts items on
the queue, another that takes items off the queue and a third that processes
the item.
My question is how do I control the throughput of the queue. What I would
like is the queue to not grow past a certain limit, for arguments sake 100
items.
It is important that items come off the queue and are processed quickly.
Is there a way to control this throughput?
Thanks In Advance
Macca