Question

In: Computer Science

1.What are the four components of a process? What is the term that describes saving the...

1.What are the four components of a process? What is the term that describes saving the state of one process, and restoring the state of another?

2.Draw and Explain function of Process Control Block(PCB).

3.      Explain 5 State process model, how it differ from 3 state Model. Which model is better, justify your answer

Solutions

Expert Solution

1)

Stack, data, text, and heap memory.

Context switching

2)

representation of a process in the operating system. It contains information associated with that process.

Process state, program counter, CPU registers, CPU-scheduling information, memory-management information, accounting information, and I/O status information.

Role of process control block

  • At any instance, a process will be having various information associated with it like identifier, state, priority, program counters, memory pointers, accounting information etc. Such information are stored in a data structure called as Process Control block (PCB).
  • It is an important tool that helps the OS support multiple processes and provide for multiprocessing.
  • It contains sufficient information such that if an interrupt occurs, the process can begin from the point where it left later as if nothing had happened.
  • The blocks are read and/or modified by every module in the OS including
    • Scheduling
    • Resource allocation
    • Interrupt processing
    • Performance monitoring and analysis
  • It can be said that the process control block defines the state of OS.
  • However, there comes the issue of Security; a bug in a single routine say the interrupt handler could damage the PCB which in turn can make it difficult for OS to manage the affected process.
  • Changes made to the Process control block (like semantics or design changes) can affect various modules.

3)

Five State Process Model

The states in the five state process models are:

1) New: The process has not yet been loaded into main memory.

2) Ready: the process is now prepared to execute when given the opportunity.

3) Running: the process is currently being executed.

4) Blocked: Process that is waiting for some event to occur.

5) Exit: Process is released from main memory because it has halted or aborted.

I suggest 5 state model rather than 3 state..model because there are more advantages

Concept of multi programming.

Clear track of process functionalities


Related Solutions

What term describes nuclear division
What term describes nuclear division
1) What is the term that describes a situation in which one party to an economic...
1) What is the term that describes a situation in which one party to an economic transaction has less information than the other party? Select one: A (inefficient market hypothesis), B (asymmetric information), C (unequal market structure), D(monopsony) 2) Economists have estimated that the cross-price elasticity of demand between beer and spirits is -0.50, the income elasticity for spirits is 1.21 and the income elasticity for wine is 5.03. These elasticities mean that beer and spirits are ________, and spirits...
1-What are the four material components of the cathode, why are they included in the cathode...
1-What are the four material components of the cathode, why are they included in the cathode composition? 2- Why are electrodes calendared / compacted? What is the benefit?
Describe the four main components of the scientific method (not process) and explain why they are...
Describe the four main components of the scientific method (not process) and explain why they are vitally important.
1. What are the steps involved in the change management process or cycle, the components of...
1. What are the steps involved in the change management process or cycle, the components of a change management project plan (planning) and the procedures for embedding change? 2. What organisational barriers might need to be overcome and what strategies might be put in place to overcome resistance to change, embed it and support acceptance of change in an organisation? 3. Why is it important to have a good understanding of environmental legislation that affects your business or the industry...
What are the four major components of a Mission Statement?
What are the four major components of a Mission Statement?
1. What are the four components that should be included in every written behavioral objective? 2....
1. What are the four components that should be included in every written behavioral objective? 2. Why is it important to remember to keep psychomotor skill instruction separate from the cognitive and affective components of skill development?
What are the four spending components of GDP? Include examples.
What are the four spending components of GDP? Include examples.
There are FOUR main components of GDP. Explain the components.
There are FOUR main components of GDP. Explain the components.
Explain the term ‘due diligence’. Discuss at least three components that affect the due diligence process.
Explain the term ‘due diligence’. Discuss at least three components that affect the due diligence process.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT