【发布时间】:2014-08-05 06:07:22
【问题描述】:
有什么区别
System.Threading.Timer
System.Threading.Timer timer = new System.Threading.Timer(new TimerCallback(PerformAction), null, 0, 15000);
和
在新线程中使用 System.Timers.Timer?
Thread thread = new Thread(new ThreadStart(PerformActionWithTimer));
thread.Start();
void PerformActionWithTimer()
{
//Timer inside this
}
【问题讨论】:
-
可能是 System.Windows.Forms.Timer?
-
请解释一下“inside a new thread”到底是什么意思?
标签: c# .net multithreading winforms