【www.gdgbn.com--安卓教程】

一款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();
    }
}

 

本文来源:http://www.gdgbn.com/shoujikaifa/27857/