CIS343|510
Chapter Three Review1. We can characterize the behavior of an individual process by listing the
sequence of instructions that execute for that process. Such a listing is
referred to as a _____ of the process.
2. Draw the diagram of a 5-state process model, labeling all the arcs.
3. Briefly state a reason for swapping (moving part or all of a process from
main memory to disk).
4. With the use of swapping, one other state must be added to the 5-state
model, namely the _____ state.
Identify the process states described below:
5. The process cannot execute until some event occurs.
6. The process is in secondary memory and is available for execution (as
soon as it is loaded into main memory).
7. The process has been released from the pool of executable processes.
8. The process is currently being executed.
9. The process has been created but has not yet been admitted to the pool of
executable processes.
10. The process is in secondary memory and awating an event.
11. The process is prepared to execute.
Identify these reasons for process termination.
12. The process attempts to use an instruction reserved for the OS.
13. The process is terminated by its parent process.
14. The process executes an OS service call to indicate that it has completed
running.
15. The process attempts a prohibited computation (e.g., divide by zero).
16. A piece of data is of the wrong type, or is not initialized.
17. The process has run longer than the specified total time limit.
18. The parent process terminates.
19. The process attempts to use a resource or file it is not allowed to use, or
to use it in an improper fashion.
20. The process is terminated by the operator or the OS.
21. The process has waited longer than specified maximum for a certain event
22. The process attempts to execute a nonexistent instruction.
23. The process attempts to access memory location it is not allowed to
access.
24. An error occurs during input or output.
25. The process requires more memory than the system can provide.
26. In Figure 3.8(b), why is there a dotted line between the states
Running and Ready, Suspend?27. Which of the states in Figure 3.8(b) represent processes which have been
allocated main memory?
28. Which represent processes currently in secondary memory?
29. What is the advantage of the process models of Figure 3.8(a) or (b) over the model of Figure 3.5?
31. T/F: The use of virtual memory eliminates the need for swapping (use of the suspend state(s)). Why?
32. The data needed by the OS to control a process is contained in the ...
33. List the typical elements of a process image.
34. List the 3 categories of information contained in the process control
block.
35. List the 4 categories of functions performed by the OS kernel.
36. List 3 mechanisms for interrupting the execution of a process.
37. List 3 examples of interrupts.
38.
List 3 approaches to OS execution.