一款c#多线程测试实例
简单实例
namespace xxx
{
public class tclass
{
static tclass()
{
thread r = new thread(new threadstart(inusrgame));
r.start();
}
}
}
详细多线程using system;
using system.threading;
public class tclass
{
public tclass()
{
thread r = new thread(new threadstart(inusrgame));
r.start();
}
static void inusrgame()
{
console.writeline("ok");
}
}
class a
{
static void main()
{
tclass t=new tclass();
console.readline();
}
}