本文介绍了如何使用线程,暂停和恢复线程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我阅读了有关CodeProject线程的文章,但有一个问题是如何一次暂停一个线程然后再次运行它?
例如:当您单击一个按钮再次暂停程序时,并且再次单击该按钮时,程序将继续执行
谢谢!
解决方案
I read an article on the CodeProject thread work with but one question is how to pause a thread in a time and then run it again?
EX: when you click a button to pause the program again, and when you press the button again, then the program continues
thanks!
解决方案
这篇关于如何使用线程,暂停和恢复线程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!