![]() |
CMSC 421, Spring 2006 Principles of Operating Systems |
This page will be updated during the semester.
Homework 2 Solutions Posted on May 18
1 _ 2 _ 3 _ 4 5
Sample: Complete the reference string so that when the page fault occurs, both LFU and FIFO would choose the SAME page to replace. Answer: 12233445. (Both replace page 1).(a) When the page fault occurs, LFU and FIFO would choose DIFFERENT pages to replace. Indicate which page would be selected by each algorithm.
Process Arrival_Time Burst_Time (ms) P1 0 25 P2 0 14 P3 4 12 P4 5 18Assume that each context switching takes 1 ms. Determine the average waiting time per process (including context switching times) for a round robin system with time quantum values of: (a) 4 ms and (b) 8 ms.
Consider a process with burst time (t_i) values of: t_1 = 14, t_2 = 23, t_3 = 15, t_4 = 19, t_5 = 24, t_6 = 36. Assume that Tau_1 = t_1. For alpha = 0.4 and alpha = 0.6, what is the value of Tau_7?