ThreadState ENUM

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.

All Members


TypeNameValue
constantREADY0
constantRUNNING1
constantPENDING2
constantDONE3

Constants


public const ThreadState READY = 0

The thread is ready to run.

public const ThreadState RUNNING = 1

The thread is running.

public const ThreadState PENDING = 2

The thread is pending.

public const ThreadState DONE = 3

The thread has finished running, either by normal completion or abortion.