求助(线程问题)
static void Main(string[] args){
Thread t1 = new Thread(new ThreadStart(threadfunction));
Thread t2 = new Thread(new ThreadStart(fun));
t1.Priority = ThreadPriority.Highest;//为什么结果是:线程2 线程1?t1的优先级不是比t2高吗?
t2.Start();
t1.Start();
}
public static void threadfunction()
{
Console.WriteLine("线程1");
}
public static void fun()
{
Console.WriteLine("线程2");
}