无参数线程
Thread t = new Thread(new ThreadStart(function));
t.Start();
单参数线程(参数以object类型传入)
Thread t = new Thread(new ParameterizedThreadStart(FunctionName));
t.Start(parameter);
private static void B(object obj) {
//......
}
无参数线程
Thread t = new Thread(new ThreadStart(function));
t.Start();
单参数线程(参数以object类型传入)
Thread t = new Thread(new ParameterizedThreadStart(FunctionName));
t.Start(parameter);
private static void B(object obj) {
//......
}