---
title: "What are the states associated in the thread?"  
description: "What are the states associated in the thread?"  
author: "Pushpendra Singh"  
published: 2010-10-25  
updated: 2020-09-15  
canonical: https://www.mindstick.com/interview/176/what-are-the-states-associated-in-the-thread  
category: "java"  
tags: ["java"]  
reading_time: 2 minutes  

---

# 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.

## Answers

### Answer by Rajesh Goswami

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.


---

Original Source: https://www.mindstick.com/interview/176/what-are-the-states-associated-in-the-thread

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
