线程问题
using System;using System.Collections.Generic;
using System.Text;
using
using System.Threading;
namespace wenjian
{
class Program
{
static void Main(string[] args)
{
Thread.CurrentThread.Name = "1";
Thread x = new Thread(new ThreadStart(ac));
x.Name = "fd";
Thread u = new Thread(new ThreadStart(ff));
u.Name="ff";
x.Start();
u.Start();
u.Priority = ThreadPriority.Highest;
}
static void ac()
{
for (int i = 0; i < 5; i++)
{
Console.WriteLine("re");
}
}
static void ff()
{
for (int i = 0; i < 5; i++)
{
Console.WriteLine(i);
}
}
}
}
为什么他还是先运行前面的.
我设置了应该是运行后面的 啊
[[it] 本帖最后由 xjxxdnmwj 于 2008-8-4 22:20 编辑 [/it]]