摘要: 一、异步委托开启线程public static void Main(string[] args){ Action<int,int> a=add; a.BeginInvoke(3,4,null,null);//前两个是add方法的参数,后两个可以为空 Console.WriteLine("main() 阅读全文
posted @ 2019-04-03 17:51 热爱生活。 阅读(6571) 评论(0) 推荐(0) 编辑
摘要: 1、 1 2 3 4 5 6 Thread thread = new Thread(new ThreadStart(getpic)); thread.Start(); private void showmessage() { Console.WriteLine("hello world"); } 1 阅读全文
posted @ 2019-04-03 17:24 热爱生活。 阅读(3450) 评论(0) 推荐(0) 编辑