浅谈.NET下的多线程
摘要:
首先来看看如何创建线程:Console.WriteLine(Process.GetCurrentProcess().Threads.Count);Thread t1 = new Thread(() => { Thread.Sleep(1000); Thread t = Thread.CurrentThread; Console.WriteLine("Name: " + t.Name); Console.WriteLine("ManagedThreadId: " + t.ManagedThreadId); Console... 阅读全文
posted @ 2014-03-18 10:34 喽水把子 阅读(362) 评论(0) 推荐(0) 编辑