Skip to main content

Posts

Showing posts with the label runnable

What is a thread in java ?

see more post : Non Runnable States in Multithreading - Different states while thread is in runnable states A thread is a lightweight process.While dealing with one thread called single thread and with more thread called multi thread . Main Thread :                       When a standalone application is running it is in main thread. What created inside is called   child thread . Life Cycle Of Thread or States Of Thread :                  New State:                         When it is created and is when the thread is not alive ie, before start( ).            Runnable (ready to run) State:                          After invoking start( ) it goes to runnable state.                 ...