answersLogoWhite

0


Best Answer

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).

User Avatar

Rubye Mante

Lvl 13
1y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What resources are typical shared by all of the threads of a process?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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


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 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).


Which is not shared by the threads of the same process?

stack


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.


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


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.


Consider a system consisting of m resources of the same type being shared by n processes?

If the system is deadlocked, it implies that each process is holding one resource and is waiting for one more. Since there are 3 processes and 4 resources, one process must be able to obtain two resources. This process requires no more resources and therefore it will return its resources when done.


Why thread is called lightweight task?

A thread is similar to a separate process, in that it can do stuff (process) independently of other threads. But it is lightweight, since the operating system doesn't have to give it its own memory space, since it shares memory with the other threads in the process.[Note: a thread or LWP shares the same instruction memory space as other threads of that process, but has its own datamemory space]


Are resources shared out equally?

not always


When a process creates a new process using what state is shared between the parent process and the child process?

shared memory segment