This object indicates the current state of a thread.
Running state means that the thread is actively
consumig CPU. All the other states are just waiting
states. The valid states are:
other - Any other state apart from the listed
ones.
dead - Kernel is waiting to release the
thread's resources.
running - Actively running on a CPU.
ready - Not running on a CPU, but is ready to
run (one or more higher or equal
priority threads are running).
stopped - Suspended (SIGSTOP signal).
send - Waiting for a server to receive
a message.
receive - Waiting for a client to send a message.
reply - Waiting for a server to reply to a
message.
stack - Waiting for more stack to be allocated.
waitpage - Waiting for process manager to
resolve a fault on a page.
sigsuspend - Suspended for a signal.
sigwaitinfo - Waiting for a signal.
nanosleep - Sleeping for a period of time.
mutex - Waiting to acquire a mutex
condvar - Waiting for a condition variable to be
signalled.
join - Waiting for the completion of another
thread.
intr - Waiting for an interrupt.
sem - Waiting to acquire a semaphore.