How can we know a state of a thread

Q

How can we know a state of a thread?

✍: Guest

A
"ThreadState" property can be used to get detail of a thread. Thread can have one or a combination of status.System.Threading. Threadstate enumeration has all the values to detect a state of thread. Some sample states are Isrunning, IsAlive, suspended etc.

2007-10-22, 4804👍, 0💬