摘要:
什么是.Net异步机制呢?在解释这个话题前,我们先看看同步的程序,就是我们常用的Hello World程序.Code 1:1classProgram2{3staticvoidMain(string[]args)4{5//查看当前的线程ID,是否线程池里面的线程6Console.WriteLine("1,ThreadID:#{0},IsPoolThread?{1}",Thread.CurrentThread.ManagedThreadId,Thread.CurrentThread.IsThreadPoolThread);78AsyncTesttest=newAsyncTest 阅读全文
posted @ 2013-05-29 09:41
于为
阅读(287)
评论(0)
推荐(0)