User:Yogesh2011/mysandbox

Threads increases efficiency of the process & also save the time duration for a perticular process.

Definition of thread

 * If we are braking a process into no. of sub-processes, that each piece or sub-process is the Thread.


 * Different Threds may fairly independant on each other.


 * We have two types of threads: Thread with Uppar case 'T' is the class & the one with lower case 't' is the instance of that class.


 * The Thread class is like
 * {| class="wikitable"

! Thread void run & many more
 * void join
 * void join
 * }but these 2 are prominent.
 * }but these 2 are prominent.

blocked  runnable

\    /

\  /

\ /

dead-->ready<=========>start