User:Yogesh2011/mysandbox
From Wikipedia, the free encyclopedia
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
- but these 2 are prominent.
Thread() void join()
void run()
& many more
blocked runnable
\ /
\ /
\ /
dead---------->ready<=========>start