Published
- 1 min read
c# current thread id
The solution for this is noted below
c# current thread id
Solution
using System.Threading;
var curThread = Thread.CurrentThread.ManagedThreadId;
Console.WriteLine($"The current thread is: {curThread}");
Try other methods by searching on the site. That is if this doesn’t work