Hey, > 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)?
You probably ran into this bug: http://bugzilla.ximian.com/show_bug.cgi?id=78241 It's fixed in SVN. Robert > > -- 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 () > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
