[Mono-list] Mono scalibility and number of threads

colin at breame.net colin at breame.net
Thu Jun 29 18:03:34 EDT 2006


If I run the test program[1] I get the message[2].  Is there an upper
limit to the number of threads the mono runtime can create? or is this
determined by the underlying OS (linux in this case)?

 -- Colin

[1]:
using System.Threading;
public class test_t {
  public static void Main() {
    for (int i=0; i<100; i++) {
      Thread thread = new Thread(delegate() {
        Thread.Sleep(10000);
      });
      thread.Start();
    }
  }
}

[2]:
** (test1.exe:16169): WARNING **:
ves_icall_System_Threading_Thread_Thread_internal: CreateThread error
0x0

Unhandled Exception: System.SystemException: Thread creation failed.
in <0x000aa> System.Threading.Thread:Start ()
in <0x00063> test_t:Main ()


More information about the Mono-list mailing list