Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=78241 --- shadow/78241 2006-05-02 11:36:02.000000000 -0400 +++ shadow/78241.tmp.4222 2006-05-02 11:36:55.000000000 -0400 @@ -187,6 +187,45 @@ System.MulticastDelegate:begin_invoke_IAsyncResult_object_AsyncCallback_object (object,System.AsyncCallback,object) in <0x00013> System.Threading.ThreadPool:QueueUserWorkItem (System.Threading.WaitCallback callback, System.Object state) in <0x000aa> System.Timers.Timer:StartTimer () in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void () + +------- Additional Comments From [EMAIL PROTECTED] 2006-05-02 11:36 ------- +Small test case with thread : +// project created on 20/03/2006 at 16:49 +using System; +using System.Globalization; +using System.Threading; + +class MainClass +{ + int nb_thread=0; + object obj=new object(); + + public void ThreadMethod() + { + lock(obj) + nb_thread++; + Console.WriteLine("Thread "+nb_thread+" Created"); + } + + + public static void Main(string[] args) + { + MainClass prog=new MainClass(); + prog.Launch(); + } + + public void Launch() + { + for (int i=0;i<10000;i++) + { + Thread thread=new Thread(new ThreadStart(this.ThreadMethod)); + thread.IsBackground=true; + thread.Start(); + } + + } + +} _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
