answersLogoWhite

0


Best Answer

stack

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which is not shared by the threads of the same process?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Threads belonging to the same process share the?

Threads belonging to the same process share the same resources and address space.


What components of program state are shared across threads in a multithreaded process?

Obviously Heap Memory


Is thread same as a function?

No. A process is composed of one or more threads. Threads can invoke any function of the process.


What is the difference between processes and threads?

The memory space, where a given application is executed is called - process. A Process is the memory set aside for an application to be executed in. Within this process the thing, which is really executed is the thread. The key difference is that processes are fully isolated from each other; threads share (heap) memory with other threads running in the same application. Threads share the address space of the process that created it; processes have their own address. Threads have direct access to the data segment of its process; processes have their own copy of the data segment of the parent process. Threads can directly communicate with other threads of its process; processes must use inter-process communication to communicate with sibling processes. Threads have almost no overhead; processes have considerable overhead. New threads are easily created; new processes require duplication of the parent process. Threads can exercise considerable control over threads of the same process; processes can only exercise control over child processes. A great answer to the question can also be found here: (link moved to link section)


Is the cost of creating a process or a thread higher?

Raj, Processes are ALWAYS more expensive than threads. Threads are considered a component of a process. That is...a process can consist of several threads of execution. The exact "cost" in memory, or allocation of time depends on the operating system, but a thread is frequently 10% or less than the "cost" of a process.AnswerWell this answer seems to be like what do you think of whether putting a new task force to do same task is Costly or using the same task force to do it for yourself when having one factory for processing in a pretty cooperative way, the answer is as usual putting same task force and that is why processes are heavy and threads are light. Because each time allocatin a new process means to launch a new set of each resources needed for its execution while Thread share some props in common that doesn't need to be reallocated and those behave like shared buffers or resources. For more refer to any O/S book.

Related questions

What resource are typically shared by all of the threads of a process?

There r some resources shared by different threads o the same process while some r not. The threads shares the address space,file,global variables. But each threads has its own stack , copy of registers(including PC).


What resources are typical shared by all of the threads of a process?

There r some resources shared by different threads o the same process while some r not. The threads shares the address space,file,global variables. But each threads has its own stack , copy of registers(including PC).


What of these components are shared by a multithreaded process?

There r some resources shared by different threads o the same process while some r not. The threads shares the address space,file,global variables. But each threads has its own stack , copy of registers(including PC).


What resources are shared by all threads of a process?

The resources that are shared by all threads of a process in Operating SystemsareMain memoryInput Output DevicesInput Output ChannelsFiles


Threads belonging to the same process share the?

Threads belonging to the same process share the same resources and address space.


What components of program state are shared across threads in a multithreaded process?

Obviously Heap Memory


What is a thread and how does it relate to a process?

A process is composed of one or more threads of execution. Multiple threads allow a process to perform two or more operations concurrently. This is particularly useful in machines with two or more processors as the threads can execute simultaneously. All the threads of a process run in a shared memory space; separate processes run in separate memory spaces. A process must have at least one thread, the primary thread. However, threads can spawn new threads as required. Each thread has its own call stack but shares the same data segment and virtual address space as the process.


Is thread same as a function?

No. A process is composed of one or more threads. Threads can invoke any function of the process.


What is the difference between processes and threads?

The memory space, where a given application is executed is called - process. A Process is the memory set aside for an application to be executed in. Within this process the thing, which is really executed is the thread. The key difference is that processes are fully isolated from each other; threads share (heap) memory with other threads running in the same application. Threads share the address space of the process that created it; processes have their own address. Threads have direct access to the data segment of its process; processes have their own copy of the data segment of the parent process. Threads can directly communicate with other threads of its process; processes must use inter-process communication to communicate with sibling processes. Threads have almost no overhead; processes have considerable overhead. New threads are easily created; new processes require duplication of the parent process. Threads can exercise considerable control over threads of the same process; processes can only exercise control over child processes. A great answer to the question can also be found here: (link moved to link section)


What is quasiparallel?

(computer science) Running multiple threads of control in the same address as though they are (almost) separate processes (except for the shared address space).


Which components of program state are shared across threads in a multi-threaded process?

a. Register values b. Heap memory c. Global variables d. Stack memory


What is relationship between process and thread?

Process --1------------m-- Threads 1 process to many threads Bring up your Task Manager (if you are using a windows), Performance tap, you can see the number of process and the number of threads, usually the number of threads is a lot higher than the number of processes.