【发布时间】:2011-09-15 20:13:35
【问题描述】:
如果我想通过一个线程执行一个方法,所以我通常使用 System.Thread 这样的
Thread th = new Thread(Test_Progress);
th.Start();
但我的同事告诉我,像下面这样使用 ThreadPool.QueueUserWorkItem 更好
ThreadPool.QueueUserWorkItem(new WaitCallback(Test_Progress),(object)true );
那么性能和处理方式有什么不同吗??
【问题讨论】:
-
这可能会有所帮助:stackoverflow.com/questions/684640/…
标签: c# .net multithreading