[Mono-devel-list] Mono on a multipocessor

Thomas Harning Jr. harningt at gmail.com
Thu Apr 21 09:56:44 EDT 2005


> Is there a reason for replication of such low thread limits from .NET?
> It is PITA to change those programmatically
> on Windows (non-portable), and I wonder how can same be done on Mono?
> 

 The reason, I think, for this is that there shouldn't be too many threads spawned.  Now... if you want to spawn more, than you could implement a more dynamic threadpool of sorts or just spawn an entirely new thread w/o ThreadPool.

One reason for this is that... you don't really gain too much by having 1000 threads all doing stuff at once... if you organize threads to have stuff to do queued, then it help optimizes things.  With the ThreadPool, to me it's expected your thread will be relatively short-lived.  With a Thread, the cost for creation will be relatively minimial the longer your thread does work.

-- 
Thomas Harning Jr.



More information about the Mono-devel-list mailing list