无参数:

NonParameterRun,方法名

  Thread nonParameterThread = new Thread(new ThreadStart(NonParameterRun)); 
   nonParameterThread.Start();  

 

 有参数

ParameterRun(object  str),注意命名时候必须是Object类型

Thread parameterThread = new Thread(new ParameterizedThreadStart(ParameterRun));  
parameterThread.Start("参数");

 

相关文章:

  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-06-11
  • 2021-05-16
  • 2021-10-02
  • 2021-05-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2021-10-29
相关资源
相似解决方案