我们如何从一个线程跳转到另一个线程 [英] how we can jump from one thread to another thread
本文介绍了我们如何从一个线程跳转到另一个线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在另一个线程结束之前创建一个线程。如何做到这一点?
i need create one thread before another thread ended inside of it .how to do it ?
推荐答案
与启动原始线程的方式相同,请参阅本教程: http://msdn.microsoft.com/en-us/library /aa645740%28v=vs.71%29.aspx [ ^ ]
如果你使用的是.net 4,那么请使用Tasks,因为它们更快,更易于使用: http://msdn.microsoft.com/en-us/ library / system.threading.tasks.task.aspx [ ^ ]
The same way you started the original thread, see this tutorial : http://msdn.microsoft.com/en-us/library/aa645740%28v=vs.71%29.aspx[^]
If you are using .net 4 then use Tasks instead as they are faster and easier to use : http://msdn.microsoft.com/en-us/library/system.threading.tasks.task.aspx[^]
这篇关于我们如何从一个线程跳转到另一个线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文