摘要: 1 Thread t; 2 public myThread() 3 { 4 t = new Thread(run); 5 t.Start(2); //这里吧参数传递进去 6 t.Join(); 7 8 } 9 static void run(object obj) //带参数的run函数10 {11 int a = (int)obj;12 Console... 阅读全文
posted @ 2012-04-18 22:51 HighFUN 阅读(10622) 评论(0) 推荐(0) 编辑