[Mono-bugs] [Bug 342640] Threadpool threads race?

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 19 06:30:06 EST 2007


Paolo Molaro <lupus at novell.com> changed:

           What    |Removed                                         |Added
            Summary|[Regression] System.Threading.Timer leaks thread|Threadpool threads race?
                   |handles...                                      |

--- Comment #2 from Paolo Molaro <lupus at novell.com>  2007-11-19 04:30:06 MST ---
So this is actually just a side effect of the new Timer code using threadpool
threads. Here is an updated test case:
using System;
using System.Threading;
using System.Diagnostics;

class MainClass {
        public static void Main(string[] args) {
                while (true) {
                        Thread.Sleep (5000);
                        ThreadPool.QueueUserWorkItem (new WaitCallback
(tmr_cb), null);

        private static void tmr_cb(object state) {
                Process p = Process.Start ("mono", "--wapi=hps");
                p.Close ();

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list