Question

In: Computer Science

Using the 7 state process model introduced in lecture, describe each state and the transitions between...

Using the 7 state process model introduced in lecture, describe each state and the transitions between them. Explain how this model developed from the simple FCFS model implemented on batch systems.

Solutions

Expert Solution

A process is nothing but a program in execution. In a multiprogramming environment,CPU switches between process to process.A scheduler is actually using for this purpose.So, during the life time the process have to undergo so many states and this is described with the help of a process model.There are different models like 2 state,5 state and 7 state process models.As the name implies the number represents the number of states.In the case of 7 state model,there will be 7 states. The states and transition are described below:

1.New: The process is just created,but not entered into executable process queue,still in secondary memory and the OS have to pick up from there.

2. Ready: After created , the process enters into ready state.That means the process is loaded into main memory.It is ready to be run and waiting for its turn from the service of CPU.

3. Run: When the CPU is selected the process to run,it enters into run state.During this state CPU will execute the instructions of this process.

4. Blocked/wait state: During the execution,the process may in need of any other resources.It may be I/O or some critical region access etc.At this situation process will go into wait state and it doesnt require CPU. After getting service from the I/O again it goes back to the ready state.

5. Terminated/completed: The process is terminated.At this state process control block(where the process information stored)also gets deleted.

6. suspend ready: This state occurs when the process which is in ready state is swapped to secondary memory from main memory.It will back to the ready state when the scheduler switch back the process from secondary to main memory.

7. suspend wait/suspend block: It is similar to suspend ready but the difference is selected process which swap to secondary memory are the one who are waiting for some I/O or may have lack of memory to execute.When the I/O is complete it goes back to suspend ready state.

FCFS in batch systems are First Come First Serve. Here whoever is ready first will get serviced initially.Only after the full execution the particular process, another will get the chance.The processor efficiency cannot be fully utilized by this method.For example,if the process is waiting for some I/O ,the processor will be idle.Actually we can make use of CPU to run another process.Multiprogramming concept cannot be worked out for such systems.But according to the current process model the CPU will support the multiprogramming concept.


Related Solutions

A state diagram shows the states of an object and the transitions between states •States are...
A state diagram shows the states of an object and the transitions between states •States are particularly common with objects that interact with the program user. •Suppose that a user wants to retrieve recent voice mail messages. •Some part of the voice mail system must keep track of the current state so that it can process the user input correctly Java. I need a state diagram for the following code: What the code Does: adds a new regular task, delete...
Describe the three different two-state transitions in biopolymers, All-or-None, Non-cooperative, and Zipper. How is each step,...
Describe the three different two-state transitions in biopolymers, All-or-None, Non-cooperative, and Zipper. How is each step, initiation, propagation, and transition, effected by coil-helix transitions?
This chapter introduced a distinction between morality, virtues, and social ethics. How would you describe each?
This chapter introduced a distinction between morality, virtues, and social ethics. How would you describe each?
Identify the seven components of the communication process model, and briefly describe each by providing an...
Identify the seven components of the communication process model, and briefly describe each by providing an example.
Draw a phylogeny of plants and describe the major evolutionary transitions that occurred at each branch
Draw a phylogeny of plants and describe the major evolutionary transitions that occurred at each branch
Describe the basic technical process of communication (Figure 8.3). Using this model, describe ways managers can...
Describe the basic technical process of communication (Figure 8.3). Using this model, describe ways managers can overcome the barriers to effective communication.
⦁   Describe the following phases of life cycle transitions in the care setting. Guidance: Each response...
⦁   Describe the following phases of life cycle transitions in the care setting. Guidance: Each response must be no more than 50 to 80 words. 1,Engaging formal services 2.Client move from home to a supported residential setting
7. What are the model assumptions of the following process and the corresponding model param- eters?...
7. What are the model assumptions of the following process and the corresponding model param- eters? Is the following model stationary? Is it invertible? Justify your answers. Xt + 1.5Xt−1 = Wt − 0.5Wt−1 + 0.07Wt−2 where Wt is a sequence of i.i.d. normal random variables with mean zero and variance 1.
using the lonable funds model, describe the relationship between bond prices and interest rate
using the lonable funds model, describe the relationship between bond prices and interest rate
1. Using the audit risk model, identify the relationship between the following elements. For each of...
1. Using the audit risk model, identify the relationship between the following elements. For each of the items below, highlight whether the two elements have an inverse relationship, a direct relationship, or no relationship. When considering each item, assume that the other components of the risk model remain constant. Engagement Risk and Acceptable Audit Risk Assessed Inherent Risk and Planned Detection Risk Materiality and Amount of substantive evidence needed Assessed Inherent Risk and Assessed Control Risk Acceptable Audit Risk and...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT