Thread.State

Read-Only
Indicates the state of the thread. A thread can be in one of four states, which can be identified via the following class constants:
0 - Running.
1 - Waiting.

Syntax
State( Integer ) as

Parameters
Integer |

# Notes

The thread has been blocked by a call to Signal or Enter from one of the locking mechanisms, CriticalSection, Mutex, or Semaphore.

2- Suspended. It will not execute because of a call to the Suspend method.

3- Sleeping. It has been put to sleep by a call to the Sleep method.

4- NotRunning. The thread will be in this state prior to a call to Run or after the thread has finished running.