---
title: "What is the difference between Process and Thread?"  
description: "What is the difference between Process and Thread?"  
author: "Anonymous User"  
published: 2015-01-26  
updated: 2020-09-19  
canonical: https://www.mindstick.com/interview/2309/what-is-the-difference-between-process-and-thread  
category: "java"  
tags: ["thread"]  
reading_time: 1 minute  

---

# 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.

## Answers

### Answer by Anonymous User

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.


---

Original Source: https://www.mindstick.com/interview/2309/what-is-the-difference-between-process-and-thread

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
