Resources employed when thread is created

What resources are employed when a thread created? How do they vary from those while a procedure is created?

E

Expert

Verified

While a thread is created the threads does not need any new resources to execute the thread shares the resources such as memory of the procedure to which they associate to. The benefit of code sharing is that it let an application to hold several different threads of activity all inside the same address space. While if a new process creation is very heavyweight since it always requires new address space to be make and even if they share the memory then the inter process communication is costly when compared to the communication among the threads.

   Related Questions in Science

©TutorsGlobe All rights reserved 2022-2023.