[concurrency-interest] What type of queue to use ?

Mohan Radhakrishnan radhakrishnan.mohan at gmail.com
Wed Jun 1 03:49:31 EDT 2005


    We have a Thread framework that queues request to access external 
WebServices . Sometimes the services might be slow or down. Each request uses 
a thread from a pool.

    What type of queue should I use ? I am looking at these two.
An unbounded linked-list-based queue. This is usually the best choice for a 
general-purpose queue. 
A linked queue with a capacity bound 

Any ideas would help. This is supposed to have good throughput because it is 
an commerce site.



More information about the Concurrency-interest mailing list