Understanding Operating Systems, 6theditionAnswers to ExercisesExercises -4Page 1Research Topics–Chapter 4Answers will vary. Look for credible references and evidence that the student thoughtfully evaluated the available research.Exercises -41. Figure 4.12 is a simplified process model of you, in which there are only two states: sleeping and waking. You make the transition fromwaking to sleeping when you are tired, and from sleeping to waking when the alarm clock goes off.There can be many answers, look for originality here. One solution is shown below.WakingSleepingDaydreamingStudyingEatinghungrytiredanxietystrainalarm ringssatisf iedsnack timeenergy boostboredsomeonew atching2. Describe context switching in lay terms and identify the process information that needs to be saved, changed, or updated when context switching takes place?Context switching is the passing of sufficient information to allow one page to be interrupted so another page can be moved into memory for processing. Essentially, during a context switch, the critical processing information for the page about to be replaced is saved in its Process Control Block, so that later, when it’s allowed to continue, it can pick up where it left off. The saved information includes the process identification, its status, and its state (which includes the process status work, register contents, main memory resources, other allocated resources, and process priority).
Understanding Operating Systems, 6theditionAnswers to ExercisesExercises -4Page 23. Fivejobs (A, B, C, D, E) are already in the READY queue waiting to be processed. Their estimated CPU cycles are respectively: 2, 10, 15, 6, and 8. Using SJN, in what order should they be processed? Using SJN, and assuming the jobs all are ready to go, the order of processing depends only on the length of the estimated processing time. Therefore, the answer is: A (2 cycles), D (6 cycles), E (8), B (10), and C (15). 4. A job running in a system, with variable time quantums per queue, needs 30 milliseconds to run to completion. If the first queue has a time quantum of 5 milliseconds and each queue thereafter has a time quantum that is twice as large as the previous one, how many times will the job be interrupted and on which queue will it finish its execution?It will be interrupted two times and will finish its execution in the third queue.Queue 15msQueue 210msQueue 320msQueue 440msEtc.5. Describe the advantages of having a separate queue for Print I/O interrupt and for Disk I/O as illustrated in Figure 4.4.The Disk I/O can accommodate several jobs requiring nonsequential processing because processing of each job can be interrupted, or not, depending on the allocation scheme. These jobs don’t need to be processed from beginning to end at one time on one processor. On the other hand, the Print I/O may included dedicated devices that would not (ordinarily) interleave the printed pages from more than one job. These tasks are completed from beginning to end before the printer is assigned to another job. 6. Given the following information:Finish times are shown on the right.JobArrival TimeCPU CycleFinish Time (answer)A022B11235C246D417E5823F7512G8315