[Mono-devel-list] Mono on a multipocessor

Thomas Harning Jr. harningt at gmail.com
Thu Apr 21 15:33:03 EDT 2005


Gonzalo Paniagua Javier wrote:
> 
> Wrong. That number is configurable. See 'man mono'
> 

Oops, didn't remember that option.
But with implementing your own dynamic threadpool, you could have it adaptively increase the threads used as workload increased.
So while you're not doing so much on the threadpool, it's count would be at some minimum. When workload is high, all the threads would be used and a queue would build up, after a certain time or queue-length, the threadpool would start increasing its thread-count up to some maximum.
When the threadpool has a small queue, over time the threadpool could start dumping the extra threads until it reaches a minimum.

Someday I may implement this... or find an example of a threadpool and tweak it if it doesn't provide this adaptive functionality.

-- 
Thomas Harning Jr.



More information about the Mono-devel-list mailing list