开发者

How to determine which thread is created from another?

Is there any way in .NET for a thread to determine its 'parent', i.e. the thread that created it?

I'm diagnosing a timing issue with a black box third party API and would like to find out what custom code开发者_开发技巧 of mine it is executing on which thread.


Kindof If you use a tool like PostSharp (you have to implement an aspect), you can determine on which threads the Start() method was called.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜