pu369com

C# 线程的定义和使用

参考:https://www.cnblogs.com/Peter-Luo/p/Threading.html

public static void myStaticParamThreadMethod(Object obj)  
{  
    Console.WriteLine(obj);  
}  
 
static void Main(string[] args)  
{  
      Thread thread = new Thread(myStaticParamThreadMethod);  
      thread.Start("通过委托的参数传值");  
}

 

posted on 2018-11-21 13:08  pu369com  阅读(226)  评论(0编辑  收藏  举报

导航