代码如下 using System; using System.Collections.Generic; using System.Text; using System.Threading; namespace ConsoleApplication1 { class Program { private static void fnRegularThead() { Console.WriteLine ("常规线程,是否来是线程池:{0}",(Thread.CurrentThread.IsThreadPoolThread ? "是" : "否" )); } private static void fnWorkMethod(object stateInfo) { Console.WriteLine ("工作线程,是否来是线程池:{0}",(Thread.CurrentThread.IsThreadPoolThread ? "是": "否" )); ((AutoResetEvent)stateInfo).Set(); } static void Main(string[] args) { //设置事件,用来和线程通信 AutoResetEvent autoEvent = new AutoResetEvent(false); //常规线程,直接通过Thread 类创建 Thread objRegularThread=new Thread (new ThreadStart (fnRegularThead )); objRegularThread.Start (); //工作线程。通过ThreadPool 创建 ThreadPool.QueueUserWorkItem(new WaitCallback (fnWorkMethod),autoEvent ); //等待常规线程结束 objRegularThread.Join (); //等待工作线程结束 autoEvent.WaitOne(); Console.Read(); } } }