如何知道谁是给定线程ID的父线程 [英] How to know who is the parent thread of a given thread ID

查看:417
本文介绍了如何知道谁是给定线程ID的父线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在调试程序在vs 2008年。
有一个线程列表与线程ID。
是否可以使用任何方式或工具来标识给定线程ID的父线程?
感谢。

I'm debugging a program in vs 2008. There is a thread list with thread IDs. Is the any way or tool that I can use to identify the parent thread of a given thread ID? Thanks.

推荐答案

没有API,至少标准和文档,获得创建者线程ID给定线程。性能监视器,Visual Studio IDE,Process Explorer或Spy ++都不提供此信息。一旦开始,线程不再依赖于它的创建者,并且独立运行;特别是没有父子关系。

There is no API, at least standard and documented, to obtain a creator thread ID for a given thread. Neither Performance Monitor, Visual Studio IDE, Process Explorer nor Spy++ provide this information. Once started, a thread is not dependent on its creator any longer and runs independently; there is no parent-child relation in particular.

这篇关于如何知道谁是给定线程ID的父线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆