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 = 0
public const ThreadState RUNNING = 1
public const ThreadState PENDING = 2
public const ThreadState DONE = 3
The thread has finished running, either by normal completion or abortion.