On 12/2/2010 03:34, Michael Schnell wrote:
On 12/01/2010 05:43 PM, [email protected] wrote:


Under normal circumstances you would have a fixed (or limited) thread pool,
and each request is handled by a free thread in the pool.
Of course it does make sense to use pre-started threads.

How are requests queued if no threads are available in the pool ? If this is
done by a single (main) thread, this might introduce a bandwidth limitation.

using apache as an example, if the maximum number of servers (threads) is reached, then requests are queued for X amount of time in the hopes that a server comes free to handle the request... if a server does not come free within X amount of time, then that request is dropped in the bitbucket...

i think that the queue (bucket?) also has a limit on the number of requests that it will hold and if this is reached, then in FIFO fashion, the first in is dumped since it is also the oldest...

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to