Boost logo

Boost :

From: Caleb Epstein (caleb.epstein_at_[hidden])
Date: 2005-12-12 17:30:37


On 12/12/05, Cory Nelson <phrosty_at_[hidden]> wrote:
>
>
> This is true. It will awake another thread if an active one blocks.
> However if all of your threads decide to block you will have a dead
> cpu. From what I understand, the builtin thread pool is able to see
> this usage and create/destroy threads to make sure you always have
> maximum CPU usage regardless of blocking.
>
> Does anyone have ideas on how you could do similar intelligent pooling
> without such OS support?

I think thats one of the aims of the "SEDA" architecture:

http://www.eecs.harvard.edu/~mdw/proj/seda/

This is a lot more heavyweight of an idea than a simple thread pool however.

--
Caleb Epstein
caleb dot epstein at gmail dot com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk