WHAT ARE THE STATES ASSOCIATED IN THE THREAD?

Pushpendra Singh

Total Post:241

Points:1205
Posted by  Pushpendra Singh
Java 
 964  View(s)
Ratings:
Rate this:
  1. Rajesh Goswami

    Post:85

    Points:425
    What are the states associated in the thread?

    Process is a program in execution.Suppose there r two processes that means that occurs at
    different-different memory location. and the context switching b/w process is more expensive.bcz it will take
    more time from one memory allocation to other memory allocation.that is why Process is called HEAVY WEIGHT PROCESS.


    Thread is smallest part of program.and It is independent sequential path of execution with in a program.
    Suppose there r two threads that means that occurs at same memory location bcz of smallest part of program.
    and the context switching b/w threads is less expensive rather than process.that is why Thraed is called Light
    WEIGHT PROCESS.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!