1、Thread td = new Thread(new ThreadStart(delegate() { DoSomeThing(参数); }));

td.Start();

2、Thread td = new Thread(new ParameterizedThreadStart(DoSome)); 

td.Start(参数);

这里DoSome的形式只能为DoSome(object o );

传入参数必须为object类型。

相关文章:

  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2022-12-23
猜你喜欢
  • 2021-06-25
  • 2021-10-25
  • 2022-12-23
相关资源
相似解决方案