Check out example codes for "c# current thread id". It will help you in understanding the concepts better.
Code Example 1
using System.Threading;
var curThread = Thread.CurrentThread.ManagedThreadId;
Console.WriteLine($"The current thread is: {curThread}");
Learn ReactJs, React Native from akashmittal.com