Question

In: Computer Science

1. a. Explain in details why the Operating System switches the process from Running state to...

1.

a. Explain in details why the Operating System switches the process from Running state to Waiting state when it issues any I/O operation.

   b. Describe a situation where the Operating System switches the process from the Running state to Ready state.

Solutions

Expert Solution

Process:

A process is not only a program under execution but it is the active state of the program when it is executing and it has its own Process Control Block.

A process requires other resources like memory, CPU, hard disk, and Input/Output, etc.

A process has five states as given below:

  1. New
  2. Ready
  3. Running or Executing
  4. Waiting
  5. Terminated

The ready state of a process means the process is waiting for the CPU to be assigned. The new state processes are picked from the secondary memory by the operating system and put into the main memory.

The short term scheduler selects the process from the ready queue.

The executing or running state of a process means the process is running and CPU is allocated to this process to complete the required action done by this process.

The waiting state is a state in which the process is waiting for some resources that may behold by the other process. If the process gets the required resources then it will go into the ready state for further execution.

a.

While a process is running then it may require more resources but if the resources are not available at that time then the process will switch from running state to waiting state. If the required resources will be available then the process will switch from the waiting state to the ready state and will wait for the CPU allocation.

b.

If a process is running and this process has all resources as required but a high priority process enters into the system and the scheduling algorithm is preemptive. The CPU will be allocated to the high priority process and the currently executing process will switch from the running state to the ready state.


Related Solutions

As a process executes, it changes states. Explain what are ready state, running state, and waiting...
As a process executes, it changes states. Explain what are ready state, running state, and waiting state. Also, describe when a process moves between these three states
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.)
Explain in details why crude oil requires to be refined and explain how this process is...
Explain in details why crude oil requires to be refined and explain how this process is done with suitable diagram.
Provide a reason for each process state transition below: a) Ready -> Running: b) Running ->...
Provide a reason for each process state transition below: a) Ready -> Running: b) Running -> Ready: c) Running -> Blocked: d) Blocked -> Ready:
1) Explain why the health care system is running out of medical supplies (beds, masks, ventilators,)...
1) Explain why the health care system is running out of medical supplies (beds, masks, ventilators,) during the pandemic of COVID-19 based on some of these economic terms: - Public goods - Free rider problems - Common pool resources - Management/ collective actions - Non-market failure
A computer system administrator notices that computers running a particular operating system seem to freeze up...
A computer system administrator notices that computers running a particular operating system seem to freeze up more often as the installation of the operating system ages. She measures the time (in minutes) before freeze-up for seven computers one month after installation, and for nine computers seven months after installation. The results are as follows: One month after install: 207.4 233.1 215.9 235.1 225.6 244.4 245.3 Seven months after install: 84.3 53.2 127.3 201.3 174.2 246.2 149.4 156.4 102.3 Let μX...
similarities and differences of an operating costing system and process costing system
similarities and differences of an operating costing system and process costing system
1. Explain what a process is and how activities in a process function as a system....
1. Explain what a process is and how activities in a process function as a system. Find an example of a process, and identify the different activities involved. How would you improve this process? What would that involve? 2. Find an example of a business, and identify the processes needed to deliver the product to the final customer. What do you think is the bottleneck in this process? How Would you suggest it be managed? Please explain this in great...
Explain how you see the operating system landscape changing in the next three years. State your...
Explain how you see the operating system landscape changing in the next three years. State your opinion, with reasons on whether you see operating systems adopting the touch screen technology as the main input option or do you think the keyboard and mouse will still rule the roost!
Please provide as much details as possible. Define stability of a system and state the criterion...
Please provide as much details as possible. Define stability of a system and state the criterion (or criteria) for a system to be stable. What happens to an unstable system in terms of transient response? Can real physical systems be unstable?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT