On 24 January 2012 20:21, sebb <seb...@gmail.com> wrote: > > Effectively that is just increasing the total number of threads. > And, unless the thread pool is infinitely expandable, the same problem > may still occur. > > Note also that although the sampler thread is doing nothing whilst > waiting for a reply, > at some point there will have to be a thread that waits for the > response to be returned. > One might be able to use a single thread to wait for multiple > responses - e.g. using polling or asynchronous I/O - but there has to > be at least one thread to allow the response(s) to be processed. > > Much simpler just to start with some spare threads. > >
Agree. And thanks for spelling it out. Hopefully, I can convince my colleagues as well. Regards, Havard -- --->Google Switzerland GmbH Identifikationsnummer: CH-020.4.028.116-1<----