answersLogoWhite

0

a. Register values

b. Heap memory

c. Global variables

d. Stack memory

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Performing Arts

What mean by multithreaded program?

A multithreaded program is one that has multiple threads in execution. They may execute parallel to one another or totally without relation to one another. In Java you can create multithreaded programs using Java threads.


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 are the popular multiprocessor thread scheduling strategies?

Load Sharing: Processes are not assigned to a particular processor. A global queue of threads is maintained. Each processor, when idle, selects a thread from this queue.Gang Scheduling: A set of related threads is scheduled to run on a set of processors at the same time, on a 1-to-1 basis. Closely related threads / processes may be scheduled this way to reduce synchronization blocking, and minimize process switching. Group scheduling predated this strategy.Dedicated processor assignment: Provides implicit scheduling defined by assignment of threads to processors. For the duration of program execution, each program is allocated a set of processors equal in number to the number of threads in the program. Processors are chosen from the available pool.Dynamic scheduling: The number of thread in a program can be altered during the course of execution.


How do threads work in an operating system?

threads are the light weight process or it is a part of the process which can execute simulteniously by sharing systm resources.... two types of thread 1.user level thread 2.kernel level thread


What are the advantages and disadvantages of user level threads and kernel level threads?

User-level threads have the advantage of being lightweight and can be managed without kernel intervention, allowing for faster thread switching. However, they are limited in their ability to utilize multiple processors efficiently and can be blocked by system calls made by a single thread. Kernel-level threads, on the other hand, offer better performance on multi-core systems and can take advantage of kernel features, but they are heavier in terms of resource consumption and switching between threads can be slower due to kernel involvement.

Related Questions

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

Obviously Heap Memory


What mean by multithreaded program?

A multithreaded program is one that has multiple threads in execution. They may execute parallel to one another or totally without relation to one another. In Java you can create multithreaded programs using Java threads.


Which of the following components of program state are shared across threads in a multithreaded process a.Register values b.Heap memory c.Global variables d.Stack memory?

Yes but there is not enough time or enough space here for a full justification of the answer


What do you mean by multithread program in java?

A Program in Java that spawns multiple threads is called a multithreaded program in Java.


Why java called as multithreaded programming?

Java is called multithreaded because it allows the programmer to define multiple threads of execution manually. The main program would continue to execute as one thread and we can speed up the processing by declaring individual threads. Threads in Java can be created in two ways: 1. By extending the Thread class & 2. By implementing the Runnable interface


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 is the difference between single threaded and multi threaded process?

A write-up of the answer to this question can be found here:http://msdn.microsoft.com/en-us/library/ms693344(VS.85).aspx"There are two types of apartments: single-threaded apartments, and multithreaded apartments. * Single-threaded Apartments-Single-threaded apartments consist of exactly one thread, so all COM objects that live in a single-threaded apartment can receive method calls only from the one thread that belongs to that apartment. All method calls to a COM object in a single-threaded apartment are synchronized with the windows message queue for the single-threaded apartment's thread. A process with a single thread of execution is simply a special case of this model.* Multithreaded Apartments-Multithreaded apartments consist of one or more threads, so all COM objects that live in an multithreaded apartment can receive method calls directly from any of the threads that belong to the multithreaded apartment. Threads in a multithreaded apartment use a model called free-threading. Calls to COM objects in a multithreaded apartment are synchronized by the objects themselves."


Distinguish the terms Program Process and Threads?

A program is an executable. A process is an executable that has been loaded into working memory and is currently executing the program. A thread is a thread of execution within a process. Every process has at least one thread, but threads can spawn additional threads as required to allow concurrent operations to be performed near-simultaneously.


What is Degree of Multiprogramming?

number of process in system number of threads in a program..


How process and threads relate to CPU architecture?

A process is a program in execution,it needs resources like CPU time,memory,files and i\o devices to accomplish its task. Threads are lightweight process


When to use threads in program?

You use threads whenever you want your program to do several things simultaneously.You use threads whenever you want your program to do several things simultaneously.You use threads whenever you want your program to do several things simultaneously.You use threads whenever you want your program to do several things simultaneously.


What is the importance of mutual exclusion and synchronization in the case of process cooperation?

to ensure that two concurrently-executing threads or processes do not execute the same code of a program at the same time. to control access to state both in small-scale multiprocessing systems -- in multithreaded environments and multiprocessor computers - and in distributed computers consisting of thousands of units - in banking and database systems, in web servers, and so on.