在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文不好,不知道是什么意思?请大家帮忙解释一下!
程序运行正常只是不明是什么意思!
当我调用 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文不好,不知道是什么意思?请大家帮忙解释一下!
程序运行正常只是不明是什么意思!
解决方案 »
- 将从表外键与主表主键值相同的某列的值赋值给主表的新列
- Windows服务的启动路径
- 如何通过文件的扩展名设置相应的图标
- 用C#怎样设置本程序在Windows任务管理器中的进程优先级?(可能是有点难哦)
- 求一遍历文件的算法
- 我如何知道SQL Server Express被安装上了?
- 请教,串行化类时,是否要求类必须使用相关特性标志,比如:[System.Xml.Serialization.XmlRootAttribute()]public class Product {/*此
- C#怎么调用word中的公式编辑器,并将取得的公式显示到rechtextbox中。谢谢
- 有关字符串处理问题
- 思归,你可能误导了我!
- 统计报纸一篇文章名词个数?
- 大家都来研究一下断点传输源码实现的原理,对学习断点多线程传输超有用,帮顶有分.附部分源码.
继续已挂起的线程。[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列表。