To check the status of the current thread in C#, use the IsAlive property.
Firstly, use the currentThread property to display information about a thread −
Thread thread = Thread.CurrentThread;
Now use the thread.IsAlive property to check the status of the thread −
thread.IsAlive
Thread Status = True
以上就是检查当前线程状态的 C# 程序的详细内容,更多请关注php中文网其它相关文章!
已抢65935个
抢已抢33089个
抢已抢18505个
抢已抢9104个
抢已抢11918个
抢已抢24938个
抢