Boost logo

Boost :

From: Eugene Alterman (eugalt_at_[hidden])
Date: 2005-12-15 15:33:43

"Stefan Seefeld" <seefeld_at_[hidden]> wrote in message
> Arkadiy Vertleyb wrote:
>> What I did was to have the main thread accept incomming requests, and put
>> them in the queue, whereas a number of worker threads was taking these
>> requests from the queue, and execute them. I don't see how this model
>> can
>> be absolutely inferior in all possible contexts.
> That is usually referred to as 'Thread Pool', and it is usually considered
> the 'best' strategy among the multi-threaded ones, in particular due to
> its
> scalability.

Well, this particular concurrency model utilizing thread pool is the
simplest but not the best.
Ever heard about Leader/Followers pattern?

Boost list run by bdawes at, gregod at, cpdaniel at, john at