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 System.Threading.Thread you
create, which may be less than the number of physical processors.

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.

In short, if you want to fully use your multiprocessor system, you need
to code support for it, either by manually creating threads or by using
the ThreadPool.

 - Jon


_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to