
12 Dec
2005
12 Dec
'05
10:30 p.m.
On 12/12/05, Cory Nelson <phrosty@gmail.com> 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