线程暂停和恢复不运行其他功能. [英] thread suspend and resume dont run other functions.(thread suspend ve resume diğer fonksiyonların içinde çalışmıyor)
问题描述
公共无效Form1_Load(对象发送者,EventArgs e)
{
线程usbCikart = new Thread(new ThreadStart(usbCikartFonk));
线程usbTak =新线程(new ThreadStart(usbTakFonk));
Control.CheckForIllegalCrossThreadCalls = false;
}
public void Form1_Load(object sender, EventArgs e)
{
Thread usbCikart = new Thread(new ThreadStart(usbCikartFonk));
Thread usbTak = new Thread(new ThreadStart(usbTakFonk));
Control.CheckForIllegalCrossThreadCalls = false;
}
我写了这段代码.一切都很好.但我想使用thread.suspend()并恢复但不起作用.我走错了.请帮助我.
I wrote this code. everythink is ok. but ı want to use thread.suspend() and resume but dont work. ı took error. Please help me.
Bu koduyazdımherşeygüzelçalışıyoryanlızbaşkafonksiyonlariçinde线程暂停ve简历yiçalışyıramıyorumhata veriyorböylebir kodugörmüyor.
Bu kodu yazdım herşey güzel çalışıyor yanlız başka fonksiyonlar içinde thread suspend ve resume yi çalışyıramıyorum hata veriyor böyle bir kodu görmüyor.
推荐答案
Hi 谢谢您在这里发布.
对于您的问题,thread.suspend()和thread.resume()已经过时,没有任何作用.
For your question, the thread.suspend() and thread.resume() are already obsolete and have no effect.
有关更多详细信息,请参阅MSDN文章.
For more details, please refer to the MSDN article.
https://msdn.microsoft.com/zh-cn/library/system.threading.thread_methods(v = vs.110).aspx
我希望这会有所帮助.
最好的问候,
温迪
这篇关于线程暂停和恢复不运行其他功能.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!