在C#.NET2005中编写多线程程序!
当我调用 FThread.Suspend();和FThread.Resume();时出显以下提示:
thread.resume has ben deprecated
please use other classes in sys.threading,
such as monitor mutex event and semaphore to synchronize threds or protect resources
http://go.microsoft.com/fwlink/?linkid=14202 
每人E文不好,不知道是什么意思?请大家帮忙解释一下!
程序运行正常只是不明是什么意思!

解决方案 »

  1.   

    .NET Framework 类库 Thread.Resume 方法 注意:此方法现在已过时。
    继续已挂起的线程。[ObsoleteAttribute("Thread.Resume has been deprecated.  Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources.  http://go.microsoft.com/fwlink/?linkid=14202", false)] 
    public void Resume ()警告不要使用 Suspend 和 Resume 方法来同步线程的活动。您无法知道挂起线程时它正在执行什么代码。如果您在安全权限评估期间挂起持有锁的线程,则 AppDomain 中的其他线程可能被阻止。如果您在线程正在执行类构造函数时挂起它,则 AppDomain 中试图使用该类的其他线程将被阻止。很容易发生死锁。版本信息
    .NET Framework
    受以下版本支持:1.0、1.1
    在 2.0 中过时(编译器警告)-->
    按照msdn的说法,此方法已过期,建议使用System.Threading类中的其他方法来实现你需要的功能。
    http://go.microsoft.com/fwlink/?linkid=14202指向的是.NET Framework V2.0已作废的API列表。