Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
.NET 中是否有任何方法可以让线程确定其“父级”,即创建它的线程?
我正在使用黑盒第三方 API 诊断计时问题,并想了解它在哪个线程上执行的我的自定义代码。
Kindof 如果您使用 PostSharp 之类的工具(您必须实现一个方面),您可以确定在哪些线程上调用了 Start() 方法。