Thread.Sleep Dose它会影响系统上打开的所有线程吗? [英] Thread.Sleep Dose it affect all threads opened on the system?
本文介绍了Thread.Sleep Dose它会影响系统上打开的所有线程吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的网站上有很多线程
如果我使用thread.sleep将会影响哪些线程?
1.如果页面中的每个线程
2.如果2个线程位于同一页面?
I have many threading on my website
if i used thread.sleep what threads will be effected??
1. if every thread in a page
2. if 2 threads located in same page??
推荐答案
它只挂起调用它的线程。
MSDN参考 [ ^ ]
您可以轻松找到的东西,为什么要浪费时间问这个?
It suspends only the thread in which it is called.
MSDN reference[^]
Something you could have found easily, why waste your time asking this?
将Cursor放在Visual Studio上的Sleep
打电话。
点击F1
键
阅读MSDN-docu
制作它如果有一些关于.NET Framework方法的问题,对象,无论你想到什么,都会有一个habbit。
如果没有事情有助于然后在CP上写问题
Place the Cursor in visual Studio on theSleep
call.
HitF1
key
Read the MSDN-docu
Make it a habbit if some question about a .NET Framework method, object, whatever comes to your mind.
If nothing helps THEN write questions on CP
这篇关于Thread.Sleep Dose它会影响系统上打开的所有线程吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文