Jump to content

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

[edit]
  • 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
Thread()
void join()
void run()
& many more
but these 2 are prominent.
        blocked   runnable
\ /
\ /
\ /

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