C#通过线程调用方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/thanks_hck/article/details/79171461

1:无参方法

Thread thread = new Thread(ExecServerCheck);
thread.Start();

2:有参方法

Thread thread = new Thread(new ParameterizedThreadStart(ExecServerCheck));
thread.Start("R");



猜你喜欢

转载自blog.csdn.net/thanks_hck/article/details/79171461