111,098
社区成员




static void Main(string[] args)
{
Thread th1 = new Thread(o => { Method1(); Method2(); }) { Name = "th1" };
Thread th2 = new Thread(o => { Method1(); }) { Name = "th2" };
Thread th3 = new Thread(o => { Method2(); }) { Name = "th3" };
th1.Start();
th2.Start();
th3.Start();
Console.Read();
}
static void Method1()
{
Console.WriteLine(Thread.CurrentThread.Name);
}
static void Method2()
{
Console.WriteLine(Thread.CurrentThread.Name);
}