Threads in Java. Java multithreading examples.
Following diagrams display different thread states. Thread States
• Runnable: Thread in this state is waiting for its turn to start execution.
• Running: Thread is executing and performing its functionality.
• Waiting: Thread is in blocked state and waiting for some operation to finish.
• Sleeping: Thread is suspended forcefully.
• Blocked on I/O: Thread will start execution after completion of