Home > DeveloperSection > Interviews > What is the difference between Process and Thread?

Posted on    January-26-2015 10:56 PM

 Java Thread 
 1 Answer(s)
  658  View(s)
Rate this:

john rob

Total Post:11

Posted on    January-26-2015 11:56 PM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick