例如,在调试线程的C#中,您可以看到每个线程的ID.
我无法通过编程方式找到获得相同线程的方法.我甚至无法获得当前线程的ID(在属性中Thread.currentThread).
Thread.currentThread
所以,我想知道Visual Studio如何获取线程的ID,并且有没有办法获取带有id的线程的句柄2345,例如?
2345
.net c# multithreading
.net ×1
c# ×1
multithreading ×1