2015年12月23日

线程问题——争用条件和死锁

摘要: 1.创建一个工程,创建一个类命名为myThread ,里面放置一个方法,内容是num++,当num为5时,输出显示一个语句 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.... 阅读全文

posted @ 2015-12-23 21:45 pnzpb 阅读(468) 评论(0) 推荐(0) 编辑

线程开启方式2—任务

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading; 6 using System.Threading.Task... 阅读全文

posted @ 2015-12-23 20:22 pnzpb 阅读(122) 评论(0) 推荐(0) 编辑

线程开启方法之一——异步委托

摘要: 1 class Program 2 { 3 private static void Text1() 4 { 5 Console.Write("这是TEXT1程序"); 6 } 7 static void Main(str... 阅读全文

posted @ 2015-12-23 15:06 pnzpb 阅读(144) 评论(0) 推荐(0) 编辑

导航