Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Figure 1 depicts a process model for TWO suspend states. (a) Briefly define the

ID: 3839658 • Letter: F

Question

Figure 1 depicts a process model for TWO suspend states. (a) Briefly define the "Ready", "Running" and "Blocked" states. (b) What is the role of the dispatcher? (c) What is swapping? (d) What operations will be carried out by the OS when none of the processes in main memory is in the Ready state? (e) Suppose a computer system has a process to print a file to the printer. The printer is slow in printing each line. After sending each line to the printer, the computer has to wait until the printer is ready to print another line and interrupts the computer. Suggest the states of the process in each of the following situations. (i) The process is sending a line to the printer. (ii) The process has just finished sending a line to the printer and is waiting for the printer to interrupt. (iii) The computer receives the interrupt from the printer and the process is waiting to be executed.

Explanation / Answer

A. Ready:

The process is waiting to be assigned to a processor. Ready processes are waiting to have the processor allocated to them by the operating system so that they can run. Process may come into this state after Start state or while running it by but interrupted by the scheduler to assign CPU to some other process.

Running

Once the process has been assigned to a processor by the OS scheduler, the process state is set to running and the processor executes its instructions.

Blocked (or waiting)

A process is said to be blocked if it is waiting for some event to happen such that as an I/O completion before it can proceed. Note that a process is unable to run until some external event happens.

B. Dispatcher: It distributes requests to the processes. The main functions of Operating system dispatcher are

Equal distribution of transaction load to the work processes

Management of buffer areas in main memory

Integration of the presentation levels

Organization of communication activities.

C. For improving the performance of the system we use the concept of swapping. In the swapping the processes those are on waiting state and those are on suspend or temporary suspend will be stored from out side the memory locations so that the speed of process will be high.

In this the process those are waiting for some input and output are transferred to the physical memory from they are running and the processes those are ready for the execution will be execute by the cpu.  

D.

When a process starts to execute, it is placed in the process queue and it is in the new state. When none of the process is in ready state means memory for the process is not available to the work process carries out. There should be memory available to process has to carried out. It results in the bottleneck where processes got struck. It hangs the operating system. To release the memory, terminate the background processes that are in default with operating system. It releases the memory, thereby avoids the memory bottle neck.

E.

1. It is in activated mode.

2.It is in ready state.

3.It is in release state.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote