C#线程

创建带参数

Thread channelUpdaterThread = new Thread(new ParameterizedThreadStart(ChannelUpdaterThreadProc));
   channelUpdaterThread.Start(this);

private static void ChannelUpdaterThreadProc(object obj)
  {
   ArchiverMain self = (ArchiverMain)obj;

。。。。。

退出

if (channelUpdaterThread != null)
   {
    channelUpdaterThread.Abort();
    channelUpdaterThread.Join();
    channelUpdaterThread = null;

   }

原文地址:https://www.cnblogs.com/profession/p/5062481.html