WHAT IS THE DIFFERENCE BETWEEN PROCESS AND THREAD?

john rob

Total Post:11

Points:55
Posted by  john rob
Thread 
 713  View(s)
Ratings:
Rate this:
  1. john rob

    Post:11

    Points:55
    What is the difference between Process and Thread?

    In Multi-Threaded programming, multiple threads are executing concurrently that improves the performance because CPU is not idle incase some thread is waiting to get some resources. Multiple threads share the heap memory, so it’s good to create multiple threads to execute some task rather than creating multiple processes. For example, Servlets are better in performance than CGI because Servlet support multi-threading but CGI doesn’t.

Answer

NEWSLETTER

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