Question

In: Computer Science

When does the operating system assign/allocate resources (i.e. memory) to a process? a) When the process...

When does the operating system assign/allocate resources (i.e. memory) to a process?

a) When the process starts

b) While the process is running

c) When the process is terminated

d) Both a and b

e) a, b and c

Also please give resources so I can look into more in-depth

Solutions

Expert Solution

The answer for the above question is d. That is both a and b.

The operating system will assign or allocate the resources (i.e. memory) to a process

-->When the process starts and

-->While the process is running

The reason that i choose those options is, if we observe the banker's algorithm, there we see that the processes are allocated with some resources initially and some of the resources that are required the process will allocates while the process is running. And also if we the 5 state and 7 state diagrams of processes life cycle, there also we can see that, the process will execute for some extent with few resources given initially and back to waiting state if they needed any resources other than already allocated. After getting these resources the process will again go to running state.

Here the answer is not When the process is terminated becuase the termination of process means process is already executed i.e. it has completed it's execution. So no resource is needed to the already completed processes as they will not go to running state again.

The resources that should be followed to understand the above concept is:

we should have the grip on the topics of Banker's algorithm and Diagrams of the life cycle of the process.

                    Hope the above is helpful. Please feel free to comment if any queries in the

                                 comment section. I will try to solve them as soon as possible.

                                            Do an up vote. Thank you...


Related Solutions

It is a consensus in operating systems design to assign high priorities or allocate more CPU...
It is a consensus in operating systems design to assign high priorities or allocate more CPU time to interactive processes (which are I/O-bound). Explain how this is accomplished by multilevel queue scheduling and the Linux CFS (Completely Fair Scheduler).
What mechanisms allocate resources when the price of a good is not allowed to bring supply and demand into equilibrium?
Please answer the following question in details. Specific subject: MICROECONOMICSWhat mechanisms allocate resources when the price of a good is not allowed to bring supply and demand into equilibrium?
Explain how an operating system protects main memory in a computer system. Discuss three responsibilities that...
Explain how an operating system protects main memory in a computer system. Discuss three responsibilities that an operating system has for file management in a computer system. Clearly distinguish between interrupt and trap. Give examples to illustrate your answer. Describe time-sharing systems and give an example to illustrate your answer. Discuss the 4 categories in which work concerning information security and protection relating to Operating Systems are grouped.
What information does the operating system need to store about a running process? (Think of 4...
What information does the operating system need to store about a running process? (Think of 4 or 5 different things.)
similarities and differences of an operating costing system and process costing system
similarities and differences of an operating costing system and process costing system
In a memory system, when the access time of the cache is 10ns and the access...
In a memory system, when the access time of the cache is 10ns and the access time of the main memory is 50ns, what is the hit ratio of the cache if the effective access time is 10% larger than the access time of the cache? (Up to 4 digits below the decimal point) please detail explanation
Explain why an operating system can be viewed as a resource allocator. Direct memory access is...
Explain why an operating system can be viewed as a resource allocator. Direct memory access is used for high-speed I/O devices in order to avoid increasing the CPU’s execution load. a) How does the CPU interface with the device to coordinate the transfer? b) How does the CPU know when the memory operations are complete? c) The CPU is allowed to execute other programs while the DMA controller is transferring data. Does this process interfere with the execution of the...
In a computer system with multiple types of memory (such as RAM and ROM), how does...
In a computer system with multiple types of memory (such as RAM and ROM), how does the computer identify where memory is stored?
1. What is an Operating System? A. It coordinates hardware resources among applications B. It is...
1. What is an Operating System? A. It coordinates hardware resources among applications B. It is a programming language to write a code C. It manages conflicting request of hardware resources D. A and B E. A and C 2. What is a sequence of booting up an Operating System? A. User Login  Bootstrap Programs  Operating System Kernel  Other Programs B. Operating System Kernel  Bootstrap Programs  User Login  Other Programs C. Bootstrap Programs ...
The design of an operating system is closely tied to the underlying hardware resources. Describe 3...
The design of an operating system is closely tied to the underlying hardware resources. Describe 3 parts of the system hardware that influences operating system design and how it impacts the operating system design.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT