Process / Thread - State

Process States


Process / Thread State is the state that a thread (and the main thread (process)) can take.


An example of a process or thread state. Other sub-state may exists. It's dependent of the process runtime.

State Description
NEW A thread that has not yet started is in this state.
RUNNABLE A thread executing is in this state.
BLOCKED A thread that is blocked is in this state.
WAITING A thread that is waiting indefinitely for another thread to perform a particular action is in this state
TIMED_WAITING A thread that is waiting for another thread to perform an action for up to a specified waiting time is in this state.
TERMINATED A thread that has exited is in this state.


with a Data Visualization - State Diagram

Process States


  • when the process is running,waiting or blocked, it's located in the main memory
  • when the process is swapped, it's located in the swap file system




With Process Explorer

Windows Process Explorer Thread State


see javase/9/docs/api/java/lang/Thread.State.html

Recommended Pages
Process States
Data Visualization - State Diagram

A state diagram is a diagram that visualize the different state of entity (ie lifecycle) The OS process state State_diagram
Process States
OS - Process (Main Thread) / Program

OS A process is the first thread started (called the main thread). It's the only thread that is authorized to start a new threads. A process is a unit of resources, while a thread is a unit of: scheduling...
Multi Threading Puppies
Process - (Kernel) Thread (Lightweight processes - LWP)

A thread is a child unit of execution of a process (also known as the ). Threads exist within a process. A process acts as a container for threads. A process is a unit of resources, while a thread is...
Process States
Process / Thread - Waiting state

waiting is a process state. When a thread needs to wait, it suspends its execution You can put a thread (process) in a waiting with a method generally called sleep Example: Java: java/lang/ThreadThread.sleep...
Process States
Process / Thread - Blocking state

blocking is a thread state that occurs when a thread (where main thread = process) attempts to acquire a lock. wait... . Example: java/util/concurrent/BlockingQueueblocking queue Blocking_(computing)...

Share this page:
Follow us:
Task Runner