The state of thread.
A thread runs through several stage in its life cycle. There is only one lifetime for a thread, so it cannot be started twice, even if it's already done.
| Type | Name | Value |
|---|---|---|
| constant | READY | 0 |
| constant | RUNNING | 1 |
| constant | PENDING | 2 |
| constant | DONE | 3 |
public const ThreadState READY = 0public const ThreadState RUNNING = 1public const ThreadState PENDING = 2public const ThreadState DONE = 3The thread has finished running, either by normal completion or abortion.