Why thread is called as a lightweight process?

Questions by desh_suja78

Showing Answers 1 - 12 of 12 Answers

shanthini

  • Mar 16th, 2006
 

Just becos the  threads share the common memory space. The memory allocated to the main thread will be shared by all other child threads.

  Whereas in case of Process, the child process are in need to allocate the seperate memory space.

It is called light weight process to emphasize the fact that a thread is like a process but is more efficient and uses fewer resources( n hence "lighter")and they also share the address space.

  Was this answer useful?  Yes

muru

  • Nov 21st, 2006
 

Thats apt answer. Thanks a lot.RegardsMuru

  Was this answer useful?  Yes

Dharani

  • Dec 28th, 2006
 

Hi,

I read the answer it really good.

Thanks and Regards,

Dharani

  Was this answer useful?  Yes

Manohar rathod

  • Mar 5th, 2007
 

the lightweight process in which the memory is allocated for any process is different

  Was this answer useful?  Yes

krisgroup

  • Oct 22nd, 2007
 

to add to this,

while creating a process you need to do a lot allocate space, maintain pointer, create a lot of pointer as you see in the block diagram of the process on contrary thread creation is pretty much simple they share the heap of process and just need a stack of their own so it is light weight .

chaitanya

  Was this answer useful?  Yes

thread is a lightweight process becoz it simply divides a process into various subprocesses....each subprocess completes specific task and these threads run symoultaneously(parallel) resulting in speedy process completion & reduced resource usage..hence less load on O.S.
correct me if m wrong.thx

  Was this answer useful?  Yes

A Thread is the smallest unit of execution.
Creating a new process would require allocating a new address space, new stack and heap section

But when a process creates one or more threads they share the data and the code section of the parent process. Each thread has it's own copy of Program counter, registers.

Also less overhead in context switch.

  Was this answer useful?  Yes

bhanu regmi

  • Apr 8th, 2015
 

because it takes less resources if system

  Was this answer useful?  Yes

Raju Singh

  • May 4th, 2015
 

Thread is light weight because thread shared the same memory address space and It takes less memory and less time to execute the program.

  Was this answer useful?  Yes

Arnab Khan

  • Apr 6th, 2016
 

Thread is a light weight process because it shares its address space except the stack and also it is more efficient than a process.

  Was this answer useful?  Yes

Salman Sheikh

  • Jul 23rd, 2016
 

Just because the threads share the common memory space. The memory allocated to the main thread will be shared by all other child threads.

Whereas in case of Process, the child process are in need to allocate the separate memory space.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions