Re: [Mono-devel-list] Mono on a multipocessor

2005-04-21 Thread Jonathan Pryor
On Wed, 2005-04-20 at 16:56 +0200, BRUNET Pierre-Marie - stagiaire wrote: Hi, I'm french student working on Mono for a University project. I wonder if Mono launchs a thread for each processor if a multithread C# program running over Mono. No. Mono will launch a thread for each

Re: [Mono-devel-list] Mono on a multipocessor

2005-04-21 Thread Gonzalo Paniagua Javier
On Thu, 2005-04-21 at 06:36 -0400, Jonathan Pryor wrote: Mono also has a ThreadPool, for which threads are created on-demand. The ThreadPool supports a maximum of 50 threads/CPU on Linux, 25/CPU on Windows. Those numbers are the default, not a maximum. -Gonzalo

Re: [Mono-devel-list] Mono on a multipocessor

2005-04-21 Thread Alex Chudnovsky
Jonathan Pryor wrote: On Wed, 2005-04-20 at 16:56 +0200, BRUNET Pierre-Marie - stagiaire wrote: Hi, I'm french student working on Mono for a University project. I wonder if Mono launchs a thread for each processor if a multithread C# program running over Mono. Mono also has a

Re: [Mono-devel-list] Mono on a multipocessor

2005-04-21 Thread Thomas Harning Jr.
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

Re: [Mono-devel-list] Mono on a multipocessor

2005-04-21 Thread Alex Chudnovsky
Thomas Harning Jr. wrote: 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.

Re: [Mono-devel-list] Mono on a multipocessor

2005-04-21 Thread Sunny
On Thursday 21 April 2005 09:25, Alex Chudnovsky wrote: I found a solution (hack really) to make .NET programmatically change maximum limit of threads on Windows, Would you be so kind to share it? Sunny -- Get Firefox http://www.spreadfirefox.com/?q=affiliatesid=10745t=85

Re: [Mono-devel-list] Mono on a multipocessor

2005-04-21 Thread Sunny
On Thursday 21 April 2005 09:53, Alex Chudnovsky wrote: Sunny wrote: On Thursday 21 April 2005 09:25, Alex Chudnovsky wrote: I found a solution (hack really) to make .NET programmatically change maximum limit of threads on Windows, Would you be so kind to share it? Its here:

Re: [Mono-devel-list] Mono on a multipocessor

2005-04-21 Thread Alex Chudnovsky
Sunny wrote: On Thursday 21 April 2005 09:53, Alex Chudnovsky wrote: Yes, this does not help you when dealing with blocking sockets. So maybe it is better to implement your own dynamic size pool to handle this. Or, if these threads stay in blocked state very long, maybe you will find that just

Re: [Mono-devel-list] Mono on a multipocessor

2005-04-21 Thread Gonzalo Paniagua Javier
On Thu, 2005-04-21 at 16:44 +0100, Alex Chudnovsky wrote: Sunny wrote: I understand desire to have maximum compatibility with actual .NET, but surely having higher limits on number of threads is not something that would be bad? From what I understand Windows Socket IO uses Completion

Re: [Mono-devel-list] Mono on a multipocessor

2005-04-21 Thread Alex Chudnovsky
Gonzalo Paniagua Javier wrote: On Thu, 2005-04-21 at 16:44 +0100, Alex Chudnovsky wrote: I understand desire to have maximum compatibility with actual .NET, but surely having higher limits on number of threads is not something that would be bad? From what I understand Windows Socket IO uses

Re: [Mono-devel-list] Mono on a multipocessor

2005-04-21 Thread Gonzalo Paniagua Javier
On Thu, 2005-04-21 at 20:36 +0100, Alex Chudnovsky wrote: From what I understood blocking IO (at least for sockets) is done by actually using async IO and making artificial wait for its to finish and then return result, and therefore usage of number of threads should be as much or higher

[Mono-devel-list] Mono on a multipocessor

2005-04-20 Thread BRUNET Pierre-Marie - stagiaire
Hi, I'm french student working on Mono for a University project. I wonder if Mono launchs a thread for each processor if a multithread C# program running over Mono. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com