五、Thread.ThreadState 属性 Aborted:线程已停止; AbortRequested:线程的Thread.Abort()方法已被调用,但是线程还未停止; Background:线程在后台执行,与属性Thread.IsBackground有关;不妨碍程序的终止 Running:线程正在正常运行; Stopped:线程已经被停止; StopRequested:线程正在被要求停止; Suspended:线程已经被挂起(此状态下,可以通过调用Resume()方法重新运行); SuspendRequested:线程正在要求被挂起,但是未来得及响应; Unstarted:未调用Thread.Start()开始线程的运行; WaitSleepJoin:线程因为调用了Wait(),Sleep()或Join()等方法处于封锁状态; 六、线程的优先级 由高到低分别是Highest,AboveNormal,Normal,BelowNormal,Lowest;系统默认为ThreadPriority.Normal 指定优先级的代码:myThread.Priority=ThreadPriority.Lowest;