摘要: 继上一篇文章之后,再来讨论lock与join 使用和区别:接下来先看join使用方法一,首先定义线程测试类TestThread,代码如下: 1 public class TestThread 2 { 3 public static void Test1() 4 { 5 for (int i = 0; i < 10; i++) 6 { 7 Console.WriteLine("Test1"); 8 } 9 ... 阅读全文
posted @ 2013-04-28 09:17 行与止 阅读(194) 评论(0) 推荐(0) 编辑