一款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();
}
}
时间: 2024-09-24 19:03:44