在MSDN上有两段话不大理解?
1.If the return value is 1, the specified thread was suspended but was restarted.
什么时restarted?挂起还能重新开始?这不是矛盾吗?2.By suspending all threads in a process except for the one reporting a debug event, it is possible to "single step" a single thread. The other threads are not released by a continue operation if they are suspended.
这段话就完全看不懂了!只知道是调试时会挂起进程内的所有线程,但是不知道“EXCEPT”那种情况到底是什么?
1.If the return value is 1, the specified thread was suspended but was restarted.
什么时restarted?挂起还能重新开始?这不是矛盾吗?2.By suspending all threads in a process except for the one reporting a debug event, it is possible to "single step" a single thread. The other threads are not released by a continue operation if they are suspended.
这段话就完全看不懂了!只知道是调试时会挂起进程内的所有线程,但是不知道“EXCEPT”那种情况到底是什么?
解决方案 »
- 串口数据的处理问题 谢谢
- 有什办法判断窗口是SDI,MDI还是Dialog?
- 如何把全角数字转换为可操作的半角数字?
- 如何用代码来关闭一个打开的文件(*.txt)????没分了,帮帮忙............................
- 想了多天没有好的解决方法的问题!急急!求各位高手帮忙!
- 100分救急!!!
- 创建 View???????????
- 在vc中怎样得到jpg格式图象的HBITMAP(解决问题或提供了有用的解决思路才给分)
- mfc方面,细分的书谁可以介绍一下!
- 请问各位可否帮我讲解一下VC中设置UDP侦听和TCP侦听
- 还是调试操作小问题
- 编译成exe后,打开exe,如何修改自身的String Table某个值,并保存?
resumethread查看并返回该线程当前的suspend count并把该值递减1,也就是说如果返回值是1的话,(被悬挂的)线程解除悬挂状态并重新开始
什么时重新开始啊?
是从线程函数的第一条语句重新开始执行吗?如果是这样的话,那挂起前线程所做的工作不就全部丢失了吗?
而且既然只是解除悬挂状态,并没有获得CPU执行权,怎么重新开始啊?这不是矛盾吗?
恢复线程后系统知道该线程能够被调用,那么根据这个线程的优先级可以给予cpu时间片
还不明白可以去查阅 advanced windows第7章