WHAT ARE THE STATES ASSOCIATED IN THE THREAD?

Pushpendra Singh

Total Post:240

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

    Post:84

    Points:420
    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.

      Modified On Mar-26-2018 05:06:14 AM

Answer

NEWSLETTER

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