Multithreaded extension class generic delegate

From , 5 Years ago, written in C#, viewed 234 times.
URL https://pastebin.vip/view/32b991e5
  1. //ParameterizedThreadStart
  2.             //Thread thread = new Thread(a =>
  3.             //{
  4.             //    while (true)
  5.             //    {
  6.             //        //Thread.CurrentThread.ManagedThreadId :是CLR帮我们分配
  7.             //        Console.WriteLine("这是子线程在干活呢..参数值:{0}.@{1}", a, Thread.CurrentThread.ManagedThreadId);
  8.             //        Thread.Sleep(1000);
  9.             //    }
  10.             //});
  11.  
  12.             ////设置后台线程
  13.             //thread.IsBackground = true;
  14.  
  15.  
  16.             ////启动带参数的线程
  17.             ////传递多个参数的话,可以使用List来传递数据
  18.             //thread.Start(2);

Reply to "Multithreaded extension class generic delegate"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website