1.Thread
// one thread
Thread thread = new ThreadStart(functiion);
thread.Start();
// thread.join
Thread ThreadA = new Thread(delegate()
{
//do something
});
Thread ThreadB = new Thread(delegate()
{
//do something;
ThreadA.Join();
//do another thing
});
//启动线程
ThreadA.Start();
ThreadB.Start();
//一开始,两个线程相互交替运行,当线程B运行到线程A的join时,会先让线程A执行完,然后线程B再继续执行。你可以理解为超车,一开始两者互不相让,当join时,线程A超车了线程B// one thread
Thread thread = new